Using HttpClient, I receive the following error when attempting to communicate over HTTPS:
Exception in thread \"main\" javax.net.ssl.SSLPeerUnverifie
Using HttpClient 3.x, you need to do this:
Protocol easyHttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443); Protocol.registerProtocol("https", easyHttps);
An implementation of EasySSLProtocolSocketFactory can be found here.