I did the same thing as you and it worked expect I was using JDK 1.3. Also you need to set the trust store password unless you use the default.
Tim -----Original Message----- From: Daniel Fisher [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: how to set truststore Hello, I'm having a problem setting the truststore in Tomcat 4.0.3 using JDK 1.4.0 In server.xml there doesn't appear to be a parameter I can use in the Factory tag, like there is for keystoreFile. I've tried setting System.setProperty("javax.net.ssl.trustStore", "path_to_certs"); in my class, but that doesn't work. I've also edited catalina.sh and added -Djavax.net.ssl.trustStore=path_to_certs to the CATALINA_OPTS variable, but that doesn't work either. I know it is still loading the default Java cacerts file, because I set -Djavax.net.debug=ssl. I'm attempting to do client authentication and because I can't seem to load my certificates I get this exception: Exception while waiting for close javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate Thanks in advance for any help. -- Daniel Fisher -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
