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

Stack Overflow | eddie | 3 months ago
  1. 0

    How to Fix sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

    Stack Overflow | 3 months ago | eddie
    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
  2. 0

    SSL-exception in Java when connecting to google analytics api

    Stack Overflow | 2 years ago
    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
  3. 0

    http://try.jsoup.org/ can not fetch this url -- https://www.wonderfulfood.com.tw/Client/index.aspx

    GitHub | 10 months ago | cswChen
    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 17#33084247

    GitHub | 3 years ago | ke-chen
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
  6. 0

    How to access a HTTPS url from a java application

    Stack Overflow | 3 years ago | N3WYrK
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost found

  1. kid 540 times, last 5 months ago
  2. poroszd 1 times, last 9 months ago
97 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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 sun.security.ssl.Alerts.getSSLException()
  2. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.Alerts.getSSLException(Alerts.java:192)[na:1.8.0_66]
    2. sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)[na:1.8.0_66]
    3. sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)[na:1.8.0_66]
    4. sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)[na:1.8.0_66]
    5. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)[na:1.8.0_66]
    6. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)[na:1.8.0_66]
    7. sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[na:1.8.0_66]
    8. sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[na:1.8.0_66]
    9. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[na:1.8.0_66]
    10. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[na:1.8.0_66]
    11. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)[na:1.8.0_66]
    12. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)[na:1.8.0_66]
    12 frames
  3. Java RT
    HttpsURLConnectionImpl.connect
    1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)[na:1.8.0_66]
    2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)[na:1.8.0_66]
    3. sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)[na:1.8.0_66]
    3 frames
  4. Spring
    RestTemplate.doExecute
    1. org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:80)[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    2. org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    3. org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    4. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:596)[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    4 frames