javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.

Stack Overflow | user3733534 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    android https CertPathValidatorException: TrustAnchor found but certificate validation failed

    Stack Overflow | 7 months ago | user3733534
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.
  2. 0

    Can't validate self signed certificate - TrustAnchor found but certificate validation failed

    Stack Overflow | 2 years ago | Ankit
    java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.

    Root Cause Analysis

    1. java.security.NoSuchAlgorithmException

      error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm

      at com.android.org.conscrypt.NativeCrypto.X509_verify()
    2. RoboVM
      PKIXCertPathValidatorSpi.engineValidate
      1. com.android.org.conscrypt.NativeCrypto.X509_verify(Native Method)
      2. com.android.org.conscrypt.OpenSSLX509Certificate.verifyOpenSSL(OpenSSLX509Certificate.java:334)
      3. com.android.org.conscrypt.OpenSSLX509Certificate.verify(OpenSSLX509Certificate.java:367)
      4. com.android.org.bouncycastle.jce.provider.CertPathValidatorUtilities.verifyX509Certificate(CertPathValidatorUtilities.java:1427)
      5. com.android.org.bouncycastle.jce.provider.CertPathValidatorUtilities.findTrustAnchor(CertPathValidatorUtilities.java:222)
      6. com.android.org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:117)
      6 frames
    3. Java RT
      CertPathValidator.validate
      1. java.security.cert.CertPathValidator.validate(CertPathValidator.java:190)
      1 frame
    4. RoboVM
      OpenSSLSocketImpl.startHandshake
      1. com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:295)
      2. com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:202)
      3. com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:611)
      4. com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
      5. com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
      5 frames
    5. Android
      HttpsURLConnectionImpl.getOutputStream
      1. com.android.okhttp.Connection.upgradeToTls(Connection.java:146)
      2. com.android.okhttp.Connection.connect(Connection.java:107)
      3. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)
      4. com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
      5. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
      6. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
      7. com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:89)
      8. com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)
      9. com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:254)
      9 frames
    6. com.xxxx.xxx
      AsyncHttpsClient$AsyncRequest.run
      1. com.xxxx.xxx.util.http.AsyncHttpsClient$AsyncRequest.run(AsyncHttpsClient.java:304)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:841)
      3 frames