I would really appreciate any advice you can give me on this one. I'm several days into debugging an issue related to an SSL configuration on my test server with a self signed certificate which gives me this error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
It might be helpful to point out that I am attempting to make a secure web service request via https to a FedEx web service located at https://gatewaybeta.fedex.com:443/web-services. Also, I have relied heavily on this post http://community.jboss.org/message/369200#369200 for guidance.
So far I have the following configuration changes to my JBossAS 5.1.0.GA but I still get the "No Trusted Certificate Found" error:
1. Created Keystore dev.keystore with CN=localhost
2. Exported Keystore into dev.cer
3. Imported dev.cer into dev.truststore
4. Enables SSL in %JBOSS_HOME%\server\default\deploy\jbossweb.sar\server.xml where I referenced the keystore, truststore and associated passwords
5. Added the following to my VM Arguments:
-Djavax.net.ssl.trustStore="C:\Development\JBoss\jboss-5.1.0.GA\server\default\conf\dev.truststore"
-Djavax.net.ssl.trustStorePassword=changeit
-Djavax.net.ssl.keyStore="C:\Development\JBoss\jboss-5.1.0.GA\server\default\conf\dev.keystore"
-Djavax.net.ssl.keyStorePassword=changeit
6. I even tried to adding the following to my Web Service Client (LocatorClient.java)
System.setProperty(
"javax.net.ssl.keyStore", "C:\\Development\\JBoss\\jboss-5.1.0.GA\\server\\default\\conf\\dev.keystore");
System.setProperty(
"javax.net.ssl.keyStorePassword", "changeit");
System.setProperty(
"javax.net.ssl.trustStore", "C:\\Development\\JBoss\\jboss-5.1.0.GA\\server\\default\\conf\\dev.truststore");
System.setProperty(
"javax.net.ssl.trustStorePassword", "changeit");
System.setProperty(
"org.jboss.security.ignoreHttpsHost","tru"org.jboss.security.ignoreHttpsHost","tru
I keep getting the same error, any advice would be greatly appreicted. Thanks again in advance.