Solution
To install an SSL certificate from Microsoft IIS 5, 6, 7 or 8 to Tomcat server, perform the following steps.
Step 1: Export the certificate from IIS as a PKCS12 (.pfx file)
Step 2: Configure PKCS12 (.pfx) file on Tomcat server
- Open %TOMCAT_HOME/conf/server.xml in XML or text editor
- Find the following lines:
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
- Delete the comment markers at the beginning of the code (<!--) and at the end of the code (-->)
- Immediately after sslProtocol="TLS" and before />, add the following attributes:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile=”/path/to/mycert.pfx”
keystoreType=”PKCS12″
keystorePass="your_PKCS12_password" />
- Save server.xml
- Restart Tomcat