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

限于喜欢 提交于 2019-12-01 06:33:53
sticky

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!