javax.net.ssl.SSLHandshakeException

java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2167

  • java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.
  • via GitHub by miku-nyan
    , 1 year ago
    java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.
  • java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.
  • Stack trace

    • javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed. at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:322) at com.android.okhttp.Connection.upgradeToTls(Connection.java:201) at com.android.okhttp.Connection.connect(Connection.java:155) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211) at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382) at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217) at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218) at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25) at com.appsflyer.AppsFlyerLib.callServer(AppsFlyerLib.java:1641) at com.appsflyer.AppsFlyerLib.sendRequestToServer(AppsFlyerLib.java:1607) at com.appsflyer.AppsFlyerLib.access$900(AppsFlyerLib.java:41) at com.appsflyer.AppsFlyerLib$SendToServerRunnable.run(AppsFlyerLib.java:1803) at com.appsflyer.AppsFlyerLib.sendTrackingWithEvent(AppsFlyerLib.java:1037) at com.appsflyer.AppsFlyerLib.access$500(AppsFlyerLib.java:41) at com.appsflyer.AppsFlyerLib$DataCollector.run(AppsFlyerLib.java:1742) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed. at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:344) at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:219) at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:114) at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:550) at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method) at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:318) ... 23 more Caused by: java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed. at com.android.org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:124) at java.security.cert.CertPathValidator.validate(CertPathValidator.java:191) at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:331) ... 28 more Caused by: com.android.org.bouncycastle.jce.provider.AnnotatedException: TrustAnchor found but certificate validation failed. at com.android.org.bouncycastle.jce.provider.CertPathValidatorUtilities.findTrustAnchor(CertPathValidatorUtilities.java:237) at com.android.org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:119) ... 30 more Caused by: java.security.NoSuchAlgorithmException: error:0D0C50A1:lib(13):func(197):reason(161) at com.android.org.conscrypt.NativeCrypto.X509_verify(Native Method) at com.android.org.conscrypt.OpenSSLX509Certificate.verifyOpenSSL(OpenSSLX509Certificate.java:349)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.