Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (971)
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 (3291)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2635)
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, 6957👍, 0💬
Popular Posts:
The Certificates snap-in is the primary tool for users and administrators to view and manage certifi...
Certificate Summary: Subject: CLASS 2 KEYNECTIS CA Issuer: Class 2 Primary CA Expiration: 2019-07-06...
Certificate summary - Owner: COMODO SSL CA, COMODO CA Limited, L=Salford, ST=Greater Manchester, GB ...
Certificate Summary: Subject: Equifax Secure Certificate Authority Issuer: Equifax Secure Certificat...
Key Summary: Type: RSA 2048-Bit Public Key Identifier: 8A:74:7F:AF:85:CD:EE:95: CD:3D:9C:D0:E2:46:14:...