Please note: this post focuses on the Apache HttpClient library. If you're using plain java, please see this post. When developing a https application, your test server often doesn't have a (valid) SSL certificate. This will cause the following exception to be thrown when connecting your client to the test server: "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated". I will be discus