Hi,
In ur ClientApplication u implement the RMISSLClientSocketFactory and override the createSocket Method.
Iam giving a snippet of the code below
"
public Socket createSocket(
String theHost, int thePort) throws IOException {
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
//setting system properties for trust store and keystore
setSystemPropertiesForKeyStore();
SSLSocketFactory socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
SSLSocket socket = (SSLSocket) socketFactory.createSocket(theHost, thePort);
return socket;
}
"
In setSystemPropertiesForKeyStore() u set the set property for the Keystore path,keystorepassword ,truststore location ,truststore password
Juz like below
" System.setProperty("javax.net.ssl.keyStore", keyStoreFileLocation);"
I hope this will help u
Have a great Day
Regs
Kathir