javax.net.ssl.SSLHandshakeException: Leaf certificate could not be verified with provided public key

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Appcelerator JIRA by jayesh joshi, 1 year ago
Leaf certificate could not be verified with provided public key
via Appcelerator JIRA by jayesh joshi, 1 year ago
Leaf certificate could not be verified with provided public key
via Stack Overflow by omar aksim
, 1 year ago
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
via GitHub by bcook-r7
, 2 years ago
java.security.cert.CertificateException: Invalid certificate
via Stack Overflow by Sanjay Kumar
, 2 years ago
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
via Stack Overflow by Mateus Gondim
, 1 year ago
java.security.cert.CertPathValidatorException: TrustAnchor found but certificate validation failed.
javax.net.ssl.SSLHandshakeException: Leaf certificate could not be verified with provided public key
at appcelerator.https.PinningTrustManager.checkServerTrusted(PinningTrustManager.java:84)
at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:116)
at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:550)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
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 ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1146)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.