Tohid Makari
Tohid Makari

Reputation: 2494

WSO2 api manager analytics : CertificateException: No subject alternative names matching IP address found executing

In wso2 api manager analytics I faced following exception, could you please guide me?

Exception occurred :java.security.cert.CertificateException: No subject alternative names matching IP address 172.24.64.114 found executing GET https://172.24.64.114:9443/api/am/admin/v1/custom-urls/carbon.super

Upvotes: 0

Views: 899

Answers (1)

Pubci
Pubci

Reputation: 4001

This looks like it is failing due to hostname verification. Although you have relevant cert in the client truststore, you have used the IP address to communicate with APIM.

You have few options here.

  1. Disable hostname verification (Not recommended for production)- https://github.com/wso2/docker-apim/blob/v3.2.0.2/docker-compose/apim-is-as-km-with-analytics/conf/apim-analytics-dashboard/conf/dashboard/deployment.yaml#L25
  2. Use the hostname instead of the IP. You can map your hostname with IP by adding a DNS entry or by adding an /etc/hosts entry. DNS entry is preferred for Prod

Upvotes: 1

Related Questions