hi at all,
i'm wirting a program (a chat) to connect two process via socket using ssl connection.
In order to make portable this chat i've written a single body formed by two threads, the first has a client behaviour (users can connect to other users) and the second thread stays on listening for connections.
I've found many howtos that show how to use ssl, but using two different process (client and server), i've found i've to use this two command:
java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=<pass> Client
for client
java -Djavax.net.ssl.trustStore=mySrvKeystore -Djavax.net.ssl.trustStorePassword=<pass> Server
for server.
I've already tried to use each these commands but the processes launch an exception.
How can i do in my case?