Connecting HTTPS API with TLS 1.2/1.3 connection in Android 2.3.3 (Gingerbread) API 10

1.8k Views Asked by At

Firstly I have found same question but it 5 years old and its not helping me so i am asking one more time.

I have android API 10 which i am working. I have to make API call to may server that server running HTTPS with TLS 1.1/1.2 protocol connection.

Can any one point me to some right direction. from where I can begin on. Or any third Party library name that can help me to connect my server with Android API 10, That would be nice.

Please Help me. Thanks.

4

There are 4 best solutions below

0
Mr. Borad On BEST ANSWER

After long time sorry forget to answer my Question.

I have found solution in /etc/httpd/conf.d/ssl.conf File. Server side I have edit /etc/httpd/conf.d/ssl.conf file and add cipher suite which available in my custom android OS for making TLS 1.0 connection. I have add TLS_DHE_RSA_WITH_AES_128_CBC_SHA cipher suite on my server and working.

1
divyansh ingle On

You should use Volley Lib Click Volley

1
Elango On

You could use retrofit library

2
Hristo Stoyanov On

TLS 1.1/1.2 support started with API 16 , so you can only use 1.0 with your target API.

Source : https://developer.android.com/reference/javax/net/ssl/SSLSocket.html