Walter Adriano da Silva Member Licensed User Longtime User Apr 19, 2016 #1 On devices with android 6+ my app works normally, but when I try run it on a device with Android 4.4, I got this: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x62b2fe10: Failure in SSL library, usually a protocol error Click to expand... I'm using OkHttp with HttpUtils2, and for tests, the app uses "hc.InitializeAcceptAll("hc")" Could anyone help me with this? Thanks
On devices with android 6+ my app works normally, but when I try run it on a device with Android 4.4, I got this: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x62b2fe10: Failure in SSL library, usually a protocol error Click to expand... I'm using OkHttp with HttpUtils2, and for tests, the app uses "hc.InitializeAcceptAll("hc")" Could anyone help me with this? Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2016 #2 What are you connecting to? InitializeAcceptAll will help when the certificate is not signed by a recognized authority. It will not help if the encryption protocol is not supported. Upvote 0
What are you connecting to? InitializeAcceptAll will help when the certificate is not signed by a recognized authority. It will not help if the encryption protocol is not supported.
Walter Adriano da Silva Member Licensed User Longtime User Apr 19, 2016 #3 I'm connecting to my own server, an extranet service, then I use InitializeAcceptAll, once the certificate for this server is not signed. Upvote 0
I'm connecting to my own server, an extranet service, then I use InitializeAcceptAll, once the certificate for this server is not signed.
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2016 #4 You need to check your server configuration. The problem might be in the supported ciphers. Upvote 0
Walter Adriano da Silva Member Licensed User Longtime User Apr 19, 2016 #5 Ok. I'll check this. But, why this problem don't occur with Android 6.0? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2016 #6 The set of supported ciphers changes between different versions. Upvote 0
Walter Adriano da Silva Member Licensed User Longtime User Apr 22, 2016 #7 The HttpUtils2 module supports TLSv1.2? My server is configured with it, then I think my problem involve this. Upvote 0
The HttpUtils2 module supports TLSv1.2? My server is configured with it, then I think my problem involve this.
Walter Adriano da Silva Member Licensed User Longtime User Apr 22, 2016 #8 I tried others settings on the server, but I found others errors, like this. As viewed in link, is it possible implement that code to specify protocol? Upvote 0
I tried others settings on the server, but I found others errors, like this. As viewed in link, is it possible implement that code to specify protocol?
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2016 #9 Have you tried it with OkHttpUtils2? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2016 #11 It is not possible to change the enabled protocols. Did you also try it with HttpClient? Upvote 0
Walter Adriano da Silva Member Licensed User Longtime User Apr 26, 2016 #12 I migrated from HttpClient some time ago, for problems in Android 6, then I don't thought to test with HttpClient. Upvote 0
I migrated from HttpClient some time ago, for problems in Android 6, then I don't thought to test with HttpClient.
Erel B4X founder Staff member Licensed User Longtime User Apr 27, 2016 #13 If it works with HttpClient then you can use HttpClient. You just need to make sure to compile with android.jar from v5 instead of v6. Upvote 0
If it works with HttpClient then you can use HttpClient. You just need to make sure to compile with android.jar from v5 instead of v6.
Walter Adriano da Silva Member Licensed User Longtime User May 20, 2016 #14 How can I set TLS version in OkHTTP? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 22, 2016 #15 It is not possible to set it. Upvote 0
MarcoRome Expert Licensed User Longtime User May 22, 2016 #16 I think that is same problem that THIS. Work without problem with Android Lollipop ( 5 or > ) but with < have this problem Upvote 1
I think that is same problem that THIS. Work without problem with Android Lollipop ( 5 or > ) but with < have this problem