In the code:
System.setProperty(\"javax.net.ssl.trustStore\", cacerts);
System.setProperty(\"javax.net.ssl.trustStorePassword\", pwdCacerts);
SSLSocketFact
Thanks for your Answer... Solved my problem by putting this code :
System.setProperty("javax.net.ssl.trustStoreType","JCEKS");
Code as follows :
System.setProperty("javax.net.ssl.keyStore", CommonUtils.getKeystorePath());
System.setProperty("javax.net.ssl.keyStorePassword",
CommonUtils.getKeystorePassword());
System.setProperty("javax.net.ssl.trustStore",
CommonUtils.getTruststorePath());
System.setProperty("javax.net.ssl.trustStorePassword",
CommonUtils.getTruststorePassword());
System.setProperty("javax.net.ssl.trustStoreType","JCEKS");