HTTPS call validation failed peer not authenticated
Error log:
caused By:javax.net.ssl.SSLPeerUnverifiedException:peer not authenticated
At Sun.security.ssl.SSLSessionImpl.getPeerCertificates (sslsessionimpl.java:431)
At Org.apache.http.conn.ssl.AbstractVerifier.verify (abstractverifier.java:128)
At Org.apache.http.conn.ssl.SSLSocketFactory.connectSocket (sslsocketfactory.java:572)
At Org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection ( defaultclientconnectionoperator.java:180)
At Org.apache.http.impl.conn.ManagedClientConnectionImpl.open (managedclientconnectionimpl.java:294)
At Org.apache.http.impl.client.DefaultRequestDirector.tryConnect (defaultrequestdirector.java:640)
At Org.apache.http.impl.client.DefaultRequestDirector.execute (defaultrequestdirector.java:479)
Reason:
Signature verification failed, possibly the other side is internal HTTPS, the corresponding signature is not issued by the online agency.
Operation:
1. Set the client not to verify the signature. Can search for different HTTP implementations
Https.sethostnameverifier (do_not_verify);
2. Configure the root certificate corresponding to the privately issued certificate. This scheme is the safest. Particularly suitable for client-side encrypted access.
2.1 If it is a free certificate issued from STARTSSL, you will need to import the Startssl CA certificate locally (some are built-in, some are not, and will not be downloaded) Startssl is free.
2.2 If it is a self-built certificate, you will need to import the self-built CA certificate locally for the visa.
3. Use the HTTP interface instead
HTTPS call validation failed peer not authenticated