Open JCaet opened 10 years ago
Optional command to make client auth mandatory
ss.setNeedClientAuth(true);
This is correct:
Client: -Djavax.net.ssl.trustStore=$HOME/.secshare/
Create a client truststore like that:
keytool -genkeypair -keystore ~/.secshare/
and then copy the server certificate there
keytool -import -alias secshareserver -file ./server.cer -keystore ~/.secshare/
To run the client program with SSL sockets you must provide
java −Djavax.net.ssl.trustStore=$HOME/.truststore \ javasec samples ch14 SSLSim javasec.samples.ch14.SSLSimpleClient pleClient localhost 9096 localhost 909
which means we can't run this without havin the truststore setup