Okhttp failed to configure https

OkHttp (retrofit 2.3.0) configure Https error (self-signed certificate) italic text :

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)

Thank you very much!

Mar.01,2021
Menu