V
V
vadim08722018-04-12 15:20:24
Java
vadim0872, 2018-04-12 15:20:24

How to create an SSL socket on android?

There is a task to transfer data over SSL with a self-signed certificate, i.e. on the android side there are 3 files: CA.pem, client.pem and client.key. Having tried several options found on stackoverflow, I still couldn’t create an ssl connection, more precisely, the socket was created, but when I tried to get a session I got null, but I didn’t catch any exceptions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Yudakov, 2018-04-13
@AlexanderYudakov

Here is an example:
https://www.datenzone.de/blog/2012/01/using-ssltls...
If something doesn't work, give details. With source code.
Have you tried connecting through a browser with this certificate?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question