Thanks for the information. Actually what I had ended up working along with one extra step - I had to take that updated cacerts file and place it in the C:\Program Files\Java\jre<version>\lib\
Regarding the server.xml, it worked as I had it but I ended up extracting the server key and the cert itself out of the pfx using keytool and then referencing the two files as stated in the apache web server documentation, as I ended up using apache httpd to load balance multiple tomcat instances. When you do that, the SSL connector in the server.xml ends up mirroring the config of the httpd.conf ssl section essentially.
Main Topics
Browse All Topics





by: sr1xxonPosted on 2008-09-03 at 01:37:34ID: 22375077
in Tomcat, you need to explicitly instanciate the CAcert.
"
ystore"
CA.crt
looks like you might have done things backwards. you will need only one CA intermidiate file, I think the last file specified should be ok.
I would start your ssl implementation from scratch.
1. import the CACert
2. impor your end user cert.
also, your server.xml is missing some content
<Connector port="443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreType="PKCS12" keystorePass="password" keystoreFile="C:\Program Files\Apache Software Foundation\Tomcat 5.5\unitypg.pfx" />
seems to be missing
truststoreFile="path_to_ke
if you're using the java ssl implementation, you need to import your cert (PFX) into your keystore, so you should create your keystore from scratch.
1. Import the Chain Certificate into you keystore
keytool -import -alias root -keystore c:\certs\.keystore \
-trustcacerts -file c:\certs\networksolutions_
then import the end user cert (PFX)
keytool -import -alias tomcat -keystore C:\certs\.keystore \
-trustcacerts -file c:\certs\yourcert.pfx
oh.. make sure your CERT password and the keystore passwords are identical, or you can run into further problems.
as a final thing to watch, aliases are case sensitive
hth..