Our external vendor WS uses "self signed certificate" and I downloaded and imported the certificate in trust store exactly as per the instructions given in below thread:
Digital Certificate: How to import .cer file in to .truststore file using?
I also verified that certificate was added properly by running following command:
keytool -list -v -keystore keystore.jks
I have added following entries in my run.config (JBoss) file:
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms1024m -Xmx2048m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djavax.net.ssl.trustStore=/jboss/jdk1.6.0_25/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassworld=changeit"
fi
Restarted services and still get following execption:
ERROR [org.jboss.ws.core.CommonClient] Exception caught while (preparing for) performing the invocation:
java.io.IOException: Could not transmit message
....
....
....
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
What could I be missing?