Installing The Certificates to the Keystore
Download your SSL Certificate file (your_domain_name.p7b) from your DigiCert Web-PKI Customer Account to the directory where your keystore (your_site_name.jks if you used our keytool CSR command generator) was saved during the CSR creation process.
***NOTE***: The certificate must be installed to the same keystore that was used to generate your CSR. If you try to install it to a different keystore it will not work.
Install the Certificate file to your keystore:
Type the following command to install the certificate file:
keytool -import -trustcacerts -alias server -file your_domain_name.p7b -keystore your_site_name.jks
You should get a confirmation stating that the "Certificate reply was installed in keystore"
If it asks if you want to trust the certificate. Choose y or yes.
The installation of this one file will load all of the necessary certificates to your keystore. Your keystore file (your_site_name.jks) is now ready to use on your Tomcat Server and you just need to configure your server to use it.
Configuring your SSL Connector
Tomcat will first need an SSL Connector configured before it can accept secure connections.
**Note: By default Tomcat will look for your Keystore with the file name .keystore in the home directory with the default password changeit. The home directory is generally /home/user_name/ on Unix and Linux systems, and C:\Documents and Settings\user_name\ on Microsoft Windows systems. -- It is possible to change the filename, password, and even location that Tomcat looks for the keystore. If you need to do this, pay special attention to #8 of Option 1 or #5 of Option 2 below.
Option 1 -- Add an SSL Connector using admintool:
Option 2 -- Configure the SSL Connector in server.xml:
When you are done your connector should look something like this:
<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" keyAlias="server" keystoreFile="/home/user_name/your_site_name.jks" keypass="your_keystore_password"
/>
How to install your SSL Digital Certificate.
© 2003-2009 DigiCert® Inc • SSL Certificate Authority • All Rights Reserved
All trademarks displayed on this web site are the exclusive property of the respective holders.