Hi Godwin, Can you try using -Dhttpclient.hostnameVerifier=false if you are using APIM 2.1. The configuration in axis2.xml will suitable for PT.
On Fri, Jul 14, 2017 at 6:17 AM, Godwin Shrimal <god...@wso2.com> wrote: > Hi All, > > I am getting below error when invoking BPS endpoing from APIM, I know its > due to keystore and we need to create a keystore and put into the server > with correct CN. My problem is there are other URLs such as DASRestApiURL, > PolicyDeployer used https endpoints with IP address and there are no > errors. What tis the reason for that and do we have any configuration to > skip this ? > > > javax.net.ssl.SSLException: *hostname in certificate didn't match: > <192.168.10.10> != </localhost> > *at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact > ory.verifyHostName(SSLProtocolSocketFactory.java:341) > at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact > ory.verifyHostName(SSLProtocolSocketFactory.java:277) > at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact > ory.verifyHostName(SSLProtocolSocketFactory.java:260) > at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact > ory.createSocket(SSLProtocolSocketFactory.java:169) > at org.apache.commons.httpclient.HttpConnection.open(HttpConnec > tion.java:707) > > > *Note : I tried with AllowAll in axis.xml and > -Dorg.wso2.ignoreHostnameVerification=true in wso2server.sh and no one > works* > > > Thanks > Godwin > > -- > *Godwin Amila Shrimal* > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94772264165* > linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* > twitter: https://twitter.com/godwinamila > <http://wso2.com/signature> > -- Thanks Abimaran Kugathasan Senior Software Engineer - API Technologies Email : abima...@wso2.com Mobile : +94 773922820 <http://stackoverflow.com/users/515034> <http://lk.linkedin.com/in/abimaran> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> <https://twitter.com/abimaran>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev