javax.net.ssl.SSLHandshakeException

Leaf certificate could not be verified with provided public key

Solutions on the web579

  • via Appcelerator JIRA by Marco Cota, 1 year ago
    Leaf certificate could not be verified with provided public key
  • via Appcelerator JIRA by Aminul Islam, 10 months 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
  • Stack trace

    • javax.net.ssl.SSLHandshakeException: Leaf certificate could not be verified with provided public key at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:322) 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 com.android.okhttp.internal.http.HttpURLConnectionImpl.getHeaderField(HttpURLConnectionImpl.java:165) 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 com.android.okhttp.internal.http.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:25) 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) at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:318)

    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

    Unknown user
    Once, 1 year ago
    3 times, 2 days ago
    20 times, 3 weeks ago
    Once, 3 weeks ago
    23 times, 1 month ago
    45 more bugmates