Hi All,

We have developed a HTTPS REST client using java in-built methods which
works properly. [1] This method is configured to allow self signed
certificates.

When using apache http client we get a certificate error :
javax.net.ssl.SSLPeerUnverifiedException: Host name '192.168.30.227' does
not match the certificate subject provided by the peer (CN=localhost,
O=WSO2, L=Mountain View, ST=CA, C=US).

What would be a good choice? Using apache HTTP client or java in built
methods. Your suggestions are highly appreciated.

[1]
https://github.com/nishadi/product-private-paas/blob/master/tools/migration/ppaas-artifact-converter/src/main/java/org/wso2/ppaas/tools/artifactmigration/RestClient.java

-- 
Malmee Weerasinghe
WSO2 Intern
mobile : (+94)* 71 7601905* |   email :   <[email protected]>
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to