okhttp 配置 https 失败

OkHttp(retrofit 2.3.0) 配置 Https 报错(自签证书)斜体文字:

API 19:

javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb8876650: Failure in SSL library, usually a protocol error

API 26:

javax.net.ssl.SSLHandshakeException: Handshake failed
...
...
Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb49b21c0: Failure in SSL library, usually a protocol error
error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER (external/boringssl/src/ssl/tls_record.c:235 0xa4a34e9f:0x00000000)

感激不尽!

阅读 5.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题