SSLException - Connection closed by peer on Android 4.x versions

后端 未结 1 621
你的背包
你的背包 2021-01-12 15:43

The issue is not occurring on higher OS versions. Is there a known problem on Android 4.x versions?
If yes, how can this issue be addressed? Should there be a change on t

相关标签:
1条回答
  • 2021-01-12 16:37

    I actually don't have the full stack trace. This is what's visible to me.

    IOException:Connection closed by peer
    EXCEPTION class: class javax.net.ssl.SSLException
    EXCEPTION cause: null
    EXCEPTION message: Connection closed by peer
    RESPONSE: SSLException
    

    The issue was due to TLSv1 being disabled on backend.
    Depending on the case there can be two approach to address this issue.
    1. Enable TLSv1 on backend server.
    2. As suggested, update the SSLEngine to support higher TLS versions on mobile app.

    0 讨论(0)
提交回复
热议问题