com.tozny.e3db.client.errors.IOError: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

GitHub | pstephenson02 | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    Import the server certificate into your truststore.
  2. 0

    Build error - certificate validation

    GitHub | 2 months ago | pstephenson02
    com.tozny.e3db.client.errors.IOError: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  3. 0
    samebug tip
    Set the 'mail.smtp.ssl.trust' system property to an smtp host, like 'smtp.gmail.com'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java SSL 통신시에 javax.net.ssl.SSLHandshakeException 해결 방법 : 네이버 블로그

    naver.com | 1 year ago
    sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  6. 0

    Certificate path discovery in Java

    Stack Overflow | 4 years ago | joro
    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
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. sun.security.provider.certpath.SunCertPathBuilderException

    unable to find valid certification path to requested target

    at sun.security.provider.certpath.SunCertPathBuilder.build()
  2. Java RT
    Validator.validate
    1. sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
    2. sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
    3. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    4. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    5. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:230)
    6. sun.security.validator.Validator.validate(Validator.java:260)
    6 frames
  3. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    10. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    11. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    11 frames
  4. okhttp3.internal.connection
    ConnectInterceptor.intercept
    1. okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:241)
    2. okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:198)
    3. okhttp3.internal.connection.RealConnection.buildConnection(RealConnection.java:174)
    4. okhttp3.internal.connection.RealConnection.connect(RealConnection.java:114)
    5. okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193)
    6. okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129)
    7. okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98)
    8. okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    8 frames
  5. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames
  6. okhttp3.internal.cache
    CacheInterceptor.intercept
    1. okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)
    1 frame
  7. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3. okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    5. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
    6. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    7. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    7 frames
  8. okhttp3
    RealCall.execute
    1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
    2. okhttp3.RealCall.execute(RealCall.java:60)
    2 frames
  9. com.tozny.e3db
    Main.main
    1. com.tozny.e3db.client.Registration.rawCall(Registration.java:54)
    2. com.tozny.e3db.client.Registration.register(Registration.java:131)
    3. com.tozny.e3db.cli.Main$.do_register(main.scala:92)
    4. com.tozny.e3db.cli.Main$.runWithOpts(main.scala:391)
    5. com.tozny.e3db.cli.Main$.liftedTree1$1(main.scala:410)
    6. com.tozny.e3db.cli.Main$.main(main.scala:409)
    7. com.tozny.e3db.cli.Main.main(main.scala)
    7 frames