Java SSL with certificate

0

I've been making client and server connections but now I have to make another one that uses certificates.

The idea is to communicate through SSL sockets.

First of all I have created both client and server certificates with the java keytool tool.

But now I'm lost because I do not know how to use them to make the connection and I can not find examples online.

Can you help me with some kind of example?

The idea is that I can only provide two data that are:

for example in the client class:

 private static String CLAVE_CLIENTE = "C:\Program Files (x86)\Java\jdk1.8.0_77\bin\client_ks";  // LA RUTA DONDE TENGO EL CERTIFICADO.
 private static String CLAU_CLIENTE_PASSWORD = "456456";

I need help to see some example because I'm so lost.

thanks!

    
asked by Montse Mkd 03.05.2018 в 18:07
source

0 answers