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 Aminul Islam, 1 year ago
Leaf certificate could not be verified with provided public key
via Appcelerator JIRA by Aminul Islam, 1 year ago
Leaf certificate could not be verified with provided public key
via GitHub by bcook-r7
, 2 years ago
java.security.cert.CertificateException: Invalid certificate
via Stack Overflow by Usman Rana
, 1 year ago
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
via Stack Overflow by omar aksim
, 1 year ago
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
via GitHub by liyun935cn
, 7 months ago
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
javax.net.ssl.SSLHandshakeException: Leaf certificate could not be verified with provided public key
at com.android.okhttp.Connection.upgradeToTls(Connection.java:1257)
at com.android.okhttp.Connection.connect(Connection.java:1188)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:395)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:298)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:399)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:349)
at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:543)
at java.net.URLConnection.getContentLength(URLConnection.java:315)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getContentLength(DelegatingHttpsURLConnection.java:146)
at ti.modules.titanium.network.TiHTTPClient.handleResponse(TiHTTPClient.java:159)
at ti.modules.titanium.network.TiHTTPClient.access$1200(TiHTTPClient.java:85)
at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1207)
at java.lang.Thread.run(Thread.java:818)
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)

Users with the same issue

2 times, 4 months ago
2 times, 5 months ago
20 times, 6 months ago
23 times, 7 months ago
Once, 9 months ago

Write tip

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