"SSLProtocolException: SSL handshake aborted" exception on Android 5.1 after migrationg to 4.7.1
See original GitHub issueHi guys!
After migrating from 3.12.0 to 4.7.1 On Android 5.1 I’m getting SSLProtocolException :
Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x7f2719a89e80: 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:770 0x7f2728a53ea0:0x00000000) at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method) at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:318)
The host I’m trying to connect is admin-api-stg.oitchau.com.br
I have tried this:
.connectionSpecs(
listOf(
ConnectionSpec.Builder(ConnectionSpec.COMPATIBLE_TLS)
.build()
)
)
But no luck
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
javax.net.ssl.SSLProtocolException: SSL handshake aborted ...
It is a bug in android versions < 4.4 , and it can be solved by removing the SSLv3 protocol from Enabled Protocols...
Read more >KB310677: Users receive a Javax.net.ssl.SSLProtocolException
SSLProtocolException : SSL handshake aborted error on Android 4.x with MicroStrategy 10.5 app when opening a configuration link. Users receive a Javax.net.ssl.
Read more >On the Security of Authentication Protocols for the Web (La ...
4.7.1 Attacks on TLS handshake integrity . ... 5.1 Cookie truncation attack against Google Accounts . ... of some aspects of Android). 1.2.11...
Read more >Thesis Delign at Lavaud Psl | PDF - Scribd
4.7.1 Attacks on TLS handshake integrity . ... 5.1 Motivation: Header Truncation Attacks against HTTPS . ... 4.9 Resumption after unknown key share...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Guys, thanks for help! I have fixed this by adding
to my App.onCreate() Important
updateAndroidSecurityProvider()
invocation must be before OkHttpClient initializationSuccessful Handshake on
4.7.1
return:To reproduce this Exception I have used this method:
I have tested it on this emulator:
@swankjesse Oddly it uses the same cipher suite with
User-Agent: okhttp/3.12.0
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 TLS_1_2