Hello Everyone, following are the simple steps to configure tomcat to support SSL / https locally.

1. Generate Keystore

First, uses “keytool” command to create a self-signed certificate. During the keystore creation process, you need to assign a password and fill in the certificate’s detail.

2. Certificate Details
You can use same “keytool” command to list the existing certificate’s detail.

3. Connector in server.xml
Next, locate your Tomcat’s server configuration file at $Tomcatconfserver.xml, modify it by adding a connector element to support for SSL or https connection.

4. Thats all 🙂
Saved it and restart Tomcat, access to https://localhost:8443/.

Hope this helps 🙂 .