[TIMOB-24004] Android: Parameter tlsVersion has no effect in version< 5.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-10-12T10:19:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Michael Bahl |
Assignee | Gary Mathews |
Created | 2016-08-03T09:28:36.000+0000 |
Updated | 2019-04-24T04:57:27.000+0000 |
Hello, I Can't reproduce the issue with the code provided below. I am testing on ANdroid 4.4.4 with SDK 5.3.1.GA.
I am getting no such error.
Thanks.
Of cause your example works because https://appservices.anvilgroup.com support both tls1.1 and tls1.2, but your example wouldn't work if https://appservices.anvilgroup.com only supports tls1.2. For example both commands below will work for https://appservices.anvilgroup.com: curl https://appservices.anvilgroup.com/help --tlsv1.1 curl https://appservices.anvilgroup.com/help --tlsv1.2 if we try to connect to a server which onyl supports tls1.2 for instance https://elster.de: curl https://elster.de --tlsv1.1 //This will fail curl https://elster.de --tlsv1.2 //This one will work If we try to connect to a server which only supports tls1.2 your titanium sample will fail on android < 5.0. Check it out and let me know your results.
I have creted a sample project for you --> https://github.com/MichelBahl/tls-AC-4323. Please reopen this ticket.
Here is a video showing the bug https://www.youtube.com/watch?v=B8c0cBGIevs&feature=youtu.be
Hello, Can you try in latest SDK 5.5.0.GA?
I am gonna check this, this weekend
It's still not working. if you have problems to repdroduce the issue, contact me via e-mail to exchange skype name/number.
Hello, I tried your test project, For me, the app works for both case, I watched your video, I see you are getting the error and for me, I am getting the below log in Android 5.0.0. Make sure you are using the latest SDK 5.5.1.GA. Thanks.
I am using the latest SDK and it fails. Are you using Android 4.4.4 ?
[~mBahl] [~sdarda] It appears the issue isn't with Titanium, Android 4.1+ does support TLSv1.2. However, the ciphers used by
https://elster.de
are not supported in Android 4.1+. You can view the ciphers supported by Android 4.1+ here: https://developer.android.com/reference/javax/net/ssl/SSLSocket.html *TEST CASE FOR TLSv1.2*www.howsmyssl.com is *not* a valid test case. You have to test against an URL which only supports 1.2 but not 1.1.
[~mBahl] I did, I tested against
https://elster.de/
. My test case above is to prove TLSv1.2 is working on Android 4.1 and that the issue is due to the host using ciphers that are not compatible with < Android 5.0. The host I tested withhttps://elster.de/
*only* allows the following ciphers to be used:Compatibility for these ciphers was introduced in Android 5.0 (https://developer.android.com/reference/javax/net/ssl/SSLSocket.html)
Closing ticket as invalid with reference to the above comments.