algolia / algoliasearch-client-android

Algolia Search API Client for Android
MIT License
99 stars 29 forks source link

Problem with SSL on Android 4.4 devices #585

Open kenumir opened 3 years ago

kenumir commented 3 years ago

Describe the bug 🐛 On android 4.4 search api has problems with SSL while query API

Environment:

Stack trace:

SearchEngineAlgoliaImpl: query e=com.algolia.search.saas.AlgoliaException: All hosts failed: [javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x556e5e78: Failure in SSL library, usually a protocol error
    error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x55867df4:0x00000000), javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x58bedf58: Failure in SSL library, usually a protocol error
    error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x55867df4:0x00000000), javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x57c5fca0: Failure in SSL library, usually a protocol error
    error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x55867df4:0x00000000), javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x556e5e78: Failure in SSL library, usually a protocol error
    error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x55867df4:0x00000000)]
com.algolia.search.saas.AlgoliaException: All hosts failed: [javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x556e5e78: Failure in SSL library, usually a protocol error
aallam commented 3 years ago

Hello @kenumir,

Your device doesn't seem to support TLS v1.2. You can attempt to patch it using this documentation.