When you need to support self-signed SSL certificates in your Apache HttpClient based application you can use the contributed EasySSLProtocolSocketFactory as described in the HttpClient docs.
- Apache Httpclient Ssl Data
- Apache Httpclient Ssl
- Apache Httpclient Ssl Example
- Apache Httpclient Ssl Verification
- Apache Httpclient Download
Apache Httpclient Ssl Data
Apache HttpClient - Custom SSL Context, Apache HttpClient - Custom SSL Context - Using Secure Socket Layer, you can establish a secured connection between the client and server. It helps to Instantiate an object of type org.apache.commons.httpclient.protocol.Protocol. The new instance would be created with a valid URI protocol scheme (https in. Apache HttpClient - Proxy Authentication - In this chapter, we will learn how to create a HttpRequest authenticated using username and password and tunnel it through a proxy to a target host, using an ex.

Instead of using HttpClient’s HostConfiguration object directly you’d modify its protocol socket factory in your code like so:
javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX path building failed:sun.security.provider.certpath.SunCertPathBuilderException:unable tofind valid certification path torequested target |

I found that the HttpClient 3.x has the following code in its executeMethod() method: