Hi Pirin, This post [1] has a better explanation. I also encountered this problem once and tried both ways. When I created a cert with cn as domain by following [2], it solved the exception but got some other issues while creating applications in App Factory. Then I found a code snippet for second option [3] and we applied that solution in APIM related test cases in App Factory integration tests. But seems it is not a good solution.
[1] http://stackoverflow.com/questions/19292473/sslhandshakeexception-hostname-in-certificate-didnt-match [2] http://udarakr.blogspot.com/2014/04/you-may-get-following-error-and-your.html?m=1 [3] https://github.com/wso2/product-af/commit/e7d542df748a91a042985768719578f83c54de99 On May 18, 2015 4:20 PM, "Pirinthapan Mahendran" <[email protected]> wrote: > Hi all, > > I am working on upgrading commons-httpclient_3.1.0.wso2v2 to > httpclient_4.1.1.wso2v1 in App Factory. > When I send the request using httpclient_4.1.1.wso2v1 to the Jenkins > server, which is deployed in WSO2AS-5.2.1, from AppFactory I am getting the > following error. > > javax.net.ssl.SSLException: hostname in certificate didn't match: < > jenkins.appfactory.private.wso2.com> != <localhost> > > Anyone encounter this issue before? Kindly appreciate your input on this > issue. > > Thanks. > > Mahendran Pirinthapan > Software Engineer | WSO2 Inc. > Mobile +94772378732. > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
