Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hostname in certificate didn't match:<>!=<> WSO2 APIM

I have a https endpoint and I need to access it from wso2 API manager. (uses 1.10).I already added the certificate files to "client-truststore.jks" file. But now it gives an error as follows.

 hostname in certificate didn't match:<ip>!=<entry name>. 

I have already updated the axis2.xml file as follows also.

<parameter name="HostnameVerifier">AllowAll</parameter>

How can I solve this issue with WSO2 APIManager to access this https backend service

like image 807
Anushka Ekanayake Avatar asked Nov 09 '22 08:11

Anushka Ekanayake


1 Answers

The CN of the certificate should match with the hostname of the URL. You get above error when they don't match.

like image 123
Bee Avatar answered Nov 15 '22 00:11

Bee