Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (83)
EC Keys (2463)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (6622)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5335)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
SunCertPathBuilderException - Server Certificate Error
Why I am getting this "SunCertPathBuilderException" error for my Java application? The error message says "unable to find valid certification path to requested target".
✍: FYIcenter.com
If you are getting the "sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" error, you Java application is not able to validate the server's certificate path to reach trusted certificate.
You need to do the following to resolve the error:
An example of the "SunCertPathBuilderException" error message is listed below:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(...) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(...) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(...) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(...) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(...) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(...) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(...) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(...) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(...) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(...) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(...) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(...) at sun.net.www.protocol.https.HttpsClient.afterConnect(...) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(...) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(...)
⇒ Adding Trusted Certificates for Java on Windows
⇐ Common Causes for "PKIX path building failed" Error
2012-07-21, 7326🔥, 0💬
Popular Posts:
Key Summary: Type: RSA 2048-Bit Private Key Identifier: 50:1A:76:E1:F8:E5:2F:90: 8C:98:73:97:83:07:2A...
How to view the ASN.1 structure of an DH public key using the OpenSSL "asn1parse" command? You can u...
How to decode a Public or Private Key and view its content? To help you to decode a Public or Privat...
Certificate summary - Owner: *.livejournal.com, Domain Control Validated, *.livejournal.com Issuer: ...
Certificate summary - Owner: Entrust Certification Authority - L1K, "(c) 2012 Entrust, Inc. - for au...