javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated issue
I am using HttpClient-4.2.1 and already added certificate on server but still I am getting below error. I have read existing issue saying to add TrustManager ( X509TrustManager ) but as per my thinking this is not solution. If I am wrong please correct me. javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128) at org.apache.http.conn.ssl.SSLSocketFactory