hai


hi,

i am doing a client server application whose communications must be done using SSL sockets where mutual authentication of client and server is required

i hav created the certificate using the java keytool and used the following code for mutual authentication but it is causing handshaking error:


System.setProperty("javax.net.ssl.keyStoreType", "SSLv3");
System.setProperty("javax.net.ssl.keyStore", "./command.jks");
System.setProperty("javax.net.ssl.keyStorePassword ", "*******");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");
System.setProperty("javax.net.ssl.trustStore", "./Agent_cert.jks");
System.setProperty("javax.net.ssl.trustStorePasswo rd", "*******");

Actually my client is in java and server is in c++

The above code is working for single level authentication but it is showing "Handshake Exception" when Mutual authrntication is done by adding the code below:

System.setProperty("javax.net.ssl.trustStoreType", "JKS");
System.setProperty("javax.net.ssl.trustStore", "./Agent_cert.jks");
System.setProperty("javax.net.ssl.trustStorePasswo rd", "*******");

Any help for this matter is realy grateful
Thanks in advance
Manoj