Sharing the Point

Office 365, SharePoint, Project Server – Support Blog

SSL Certificate Installation in Tomcat Web Server

Posted by Ashraf on October 24, 2010

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.

Installing The Certificates to the Keystore

1. Download your SSL Certificate file (example: mycertificate.p7b) from your certificate authority Account to the directory where your keystore was saved during the CSR creation process.

2.Type the following command to install the certificate file to your keystore:

keytool -import -trustcacerts -alias tomcat -file mycertificate.p7b -keystore .keystore

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.

Your keystore file (.keystore) 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.

1. Open the Tomcat server.xml file in a text editor (this is usually located in the conf folder of your Tomcat’s home directory).
2. Find the connector that will be secured with the new keystore and uncomment it if necessary (it is usually a connector with port 443 or 8443 like the example below).
3.Specify the correct keystore filename and password in your connector configuration. 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" SSLEnabled="true" clientAuth="false" sslProtocol="TLS" keyAlias="tomcat" keystoreFile="c:\tomcat6.0\conf\.keystore keypass="your_keystore_password" />

4. Save your changes to the server.xml file.
5. Restart Tomcat.

Advertisements

Sorry, the comment form is closed at this time.

 
%d bloggers like this: