javax.net.ssl.SSLHandshakeException: Handshake failed

GitHub | punksta | 8 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

    Can't make OkHttp to trust my certificate

    Stack Overflow | 12 months ago | Olcay ErtaƟ
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
  2. 0

    GitHub comment 31#217140509

    GitHub | 10 months ago | nishashirawala
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    SSLHandshakeException: Connection closed by peer on android app

    Stack Overflow | 9 months ago | Kiwi
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  5. 0

    Trust anchor for certification path not found.

    GitHub | 5 months ago | MacViswa
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.net.ssl.SSLProtocolException

    SSL handshake aborted: ssl=Failure in SSL library, usually a protocol error error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:795 0xabea4dd4:0x00000000)

    at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake()
  2. RoboVM
    OpenSSLSocketImpl.startHandshake
    1. com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
    2. com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:318)
    2 frames
  3. okhttp3.internal.io
    RealConnection.connect
    1. okhttp3.internal.io.RealConnection.connectTls(RealConnection.java:239)
    2. okhttp3.internal.io.RealConnection.establishProtocol(RealConnection.java:196)
    3. okhttp3.internal.io.RealConnection.buildConnection(RealConnection.java:171)
    4. okhttp3.internal.io.RealConnection.connect(RealConnection.java:111)
    4 frames
  4. okhttp3.internal.http
    HttpEngine.sendRequest
    1. okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:187)
    2. okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123)
    3. okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93)
    4. okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296)
    5. okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
    5 frames
  5. okhttp3
    RealCall$ApplicationInterceptorChain.proceed
    1. okhttp3.RealCall.getResponse(RealCall.java:243)
    2. okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)
    2 frames
  6. ru.example.example
    NetModule$Companion$TokenInterceptor.intercept
    1. ru.example.example.tech.modules.NetModule$Companion$TokenInterceptor.intercept(NetModule.kt:156)
    1 frame
  7. okhttp3
    RealCall.execute
    1. okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
    2. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
    3. okhttp3.RealCall.execute(RealCall.java:57)
    3 frames
  8. retrofit2
    OkHttpCall.execute
    1. retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
    1 frame
  9. retrofit2.adapter.rxjava
    RxJavaCallAdapterFactory$RequestArbiter.request
    1. retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$RequestArbiter.request(RxJavaCallAdapterFactory.java:171)
    1 frame
  10. rxjava
    Subscriber.setProducer
    1. rx.internal.operators.OperatorSubscribeOn$1$1$1.request(OperatorSubscribeOn.java:80)
    2. rx.Subscriber.setProducer(Subscriber.java:211)
    3. rx.internal.operators.OperatorSubscribeOn$1$1.setProducer(OperatorSubscribeOn.java:76)
    4. rx.Subscriber.setProducer(Subscriber.java:205)
    4 frames
  11. retrofit2.adapter.rxjava
    RxJavaCallAdapterFactory$CallOnSubscribe.call
    1. retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$CallOnSubscribe.call(RxJavaCallAdapterFactory.java:152)
    2. retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$CallOnSubscribe.call(RxJavaCallAdapterFactory.java:138)
    2 frames
  12. rxjava
    ScheduledAction.run
    1. rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
    2. rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
    3. rx.Observable.unsafeSubscribe(Observable.java:8666)
    4. rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
    5. rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:220)
    6. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
    6 frames
  13. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    7. java.lang.Thread.run(Thread.java:818)
    7 frames