W WimS Member Licensed User Longtime User Nov 26, 2019 #1 I have a device with Android 4.4.3 and without GMS (Google Mobile Service). I use Okhttp and I get the following error using SSL : ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x613ab318: Failure in SSL library, usually a protocol error I have looked at this tread : https://www.b4x.com/android/forum/threads/android-4-and-ssl-problem.97719/#post-696647 But the device don't have GMS. So what can I do ?
I have a device with Android 4.4.3 and without GMS (Google Mobile Service). I use Okhttp and I get the following error using SSL : ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x613ab318: Failure in SSL library, usually a protocol error I have looked at this tread : https://www.b4x.com/android/forum/threads/android-4-and-ssl-problem.97719/#post-696647 But the device don't have GMS. So what can I do ?
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2019 #2 It fails to run this code: https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044 right? Upvote 0
It fails to run this code: https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044 right?
W WimS Member Licensed User Longtime User Nov 26, 2019 #3 Yes, I have tried this but It also fails. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2019 #4 If you have control over the server then enable TLS 1.0 or TLS 1.1. Upvote 0
W WimS Member Licensed User Longtime User Nov 26, 2019 #5 I haven't control over the server. I connect to a soap webservice who is strictly :-( Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2019 #6 1. Test it with Android 5+ device. 2. Android 4.4, especially without Google services are very rare devices. I'm not sure that it is worth the efforts to try and deal with such devices. You might be able to create a library that uses a custom TLSSocketFactory. However it will be difficult to combine it with OkHttp. Upvote 0
1. Test it with Android 5+ device. 2. Android 4.4, especially without Google services are very rare devices. I'm not sure that it is worth the efforts to try and deal with such devices. You might be able to create a library that uses a custom TLSSocketFactory. However it will be difficult to combine it with OkHttp.
W WimS Member Licensed User Longtime User Nov 26, 2019 #7 On all newer devices it works ok. I am also afraid there is no solution. Upvote 0