How to configure your SSL connector?
You need to configure an SSL connector before the server can accept a secure connection. Here is how to configure it:
Step 1 – Open the '.xml' file of Tomcat server in a text editor. The '.xml', file is usually located in the conf folder in your server’s home directory.
Step 2 – Now locate the connector for which you intend to use the new keystore to secure. Normally, the connector with port 443 or 8443 is used as shown in the Step 4 below.
Step 3 – Uncomment the connector if necessary. To uncomment the connector, you need to remove the comment tags (.)
Step 4 – In your connector configuration, you need to specify the correct keystore filename and password:
< 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="server" keystoreFile="/home/user_name/your_site_name.jks" keystorePass="your_keystore_password" />
All the users with the Tomcat version prior to Tomcat 7 need to change 'keystorePass' to 'keypass' in the above comment.
Step 5 – Save all the changes made to the server .xml file.
Step 6 – Hit 'Restart' to complete the SSL installation process on your Tomcat server.