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 | 1 week ago
  1. 0
    Import the server certificate into your truststore.
  2. 0

    Build error - certificate validation

    GitHub | 1 week 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
    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

    Hi, I'm getting an error: {noformat} Failed to login AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: 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 faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: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(Alerts.java:174) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1731) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241) {noformat} when trying to connect to confluence that seems very close to the issue described in [JENKINS-17693|https://issues.jenkins-ci.org/browse/JENKINS-17693]. The server I'm talking to is https so I suspect it's the same issue. It's mentioned that there is a procedure to get the certificate from the server and install import to jvm. I wonder if it would be possible to document this procedure somewhere? Not sure if it's relevant but the Confluence I'm connecting to is rather an old version, 2.5.8. Thanks Andy

    Jenkins JIRA | 3 years ago | Andy Bigos
    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