Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing TLS 1.2 on Android 2.3.3

I have been trying to implement TLS 1.2 on Android. I create an SSLSocket s but when I run s.getSupportedProtocols(), TLS 1.2 is not one of the options. TLSv1 and SSLv3 are supported but TLSv1.2 is not.

In relation to that question, the ciphersuite I need is also not on there (TLS_ECDHE_ECDSA_WITH_AES_256_...)

Any idea on what I could import or do to enable TLSv1.2 and that cipher on android? Is there something I am missing? Any ideas would be helpful! Thanks!

like image 414
Otra Avatar asked May 10 '11 12:05

Otra


People also ask

What is TLS Android?

The Secure Sockets Layer (SSL)—now technically known as Transport Layer Security (TLS)—is a common building block for encrypted communications between clients and servers.


2 Answers

Just for documentation purpose (this question is 3.5 years old) - Android API documentation has a list of supported SSL/TLS per API level, including specific cipher suites: https://developer.android.com/reference/javax/net/ssl/SSLSocket.html

like image 175
Pavel Punsky Avatar answered Oct 22 '22 18:10

Pavel Punsky


You can't really enable it if it is not there. To add support for TLSv1.2 you need to either add a new JSSE provider (not trivial), or if you only need a socket, probably implement it in native code using OpenSSL. Or simply use JB if you can.

like image 40
Nikolay Elenkov Avatar answered Oct 22 '22 17:10

Nikolay Elenkov