Get your FREE copy of "The Ultimate Guide of SSL"

Download Ebook

How to install self signing certificate for tomcat

SSL Certificate is a latest & essential technology to secure web browsers and web servers over the net. A self signed certificate also pay enough security to secure communication on web server like webmail.

Steps to Install Self Sign Certificate on Tomcat

Step – 1. Open server.xml, located in TOMCAT\conf.

Find and uncomment the SSL <Connector port entry.

NOTE: XML uses the “<!–” start and “–>” end symbols to begin and end comments.

NOTE: There is a comment just above it that looks like this:

<!– Define a SSL HTTP/1.1 Connector on port 8443 –>

Step – 2. Add two more attributes to this tag: 

keystoreFile=”PATH TO YOUR KEY STORE”

and:

keystorePass=”YOUR PASSWORD” 

Step – 3. Restart Tomcat. 

————-
Example of a configured server.xml file:

<!– Define a SSL HTTP/1.1 Connector on port 8443 –>

    <Connector port=”8443″

               maxHttpHeaderSize=”8192″

               maxThreads=”150″

               minSpareThreads=”25″

               maxSpareThreads=”75″

               enableLookups=”false”

               disableUploadTimeout=”true”

               acceptCount=”100″

               scheme=”https”

               secure=”true”

               clientAuth=”false”

               sslProtocol=”TLS”

               keystoreFile=”c:\ssl\keystore”

               keystorePass=”myPassword” />

Disclosure: AboutSSL appreciates your continuous support. It helps us tremendously to keep moving in the competitive SSL industry. Here most of the links which direct you to buy any SSL/TLS related service or products earns us a certain percentage of referral commission. Learn More