What happens if you also set

-Djavax.net.ssl.keyStore=c:\...
-Djavax.net.ssl.keyStorePassword=password



Mayne, Peter wrote:

I have an application running in Tomcat 4.1.18 using JDK 1.4.1 on Windows XP
that makes connections to "https://...";.

If I add the web server's certificate's CA to
JAVA_HOME\jre\lib\security\cacerts, everything works fine.

If instead I use a separate keystore, at the command prompt:

set java_opts="-Djavax.net.ssl.trustStore=c:\...
-Djavax.net.ssl.trustStorePassword=password

Then (at the same command prompt) run startup.bat, the exception:

javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Couldn't find trusted certificate

is thrown.

How do I tell the servlet to use a different trust store?

Thanks.

PJDM






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to