I have enabled SSL in tomcat many times however initially I struggled to get it in running condition. So I thought to share a simple approach I am following now days.
Run tool “Keytool“ provided by the JRE to create a “keystore file”.
The command to run tool is:
keytool -genkey -alias tomcat -keyalg RSA -keystore D:/.keyStore
Where “D:/.keystore” is the path where file should be created.
Instead of alias “tomcat” any other name can be used.
After running above command, you will be asked many questions, so answer them correctly as shown in below image:
Remember the password provided, as it will be needed in next step.