Enable SSL in Tomcat

Step 1
Windows[goto Command]
%JAVA_HOME%\bin\keytool -genkey

Enter all the details which keytool is going to prompt. (rememeber the password)

once you done, please go to your [USER_HOME](document & settings), locate the .keystore.

Copy this file and paste in tomcat root folder.

Step 2
Open [tomcat_home]/conf/server.xml

uncomment the SSL config entry. And configure the SSL certificate info.[see beloe]
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile=”.keystore” keystorePass=”12345678″ />

Step 3
Start tomcat
[tomcat_home]/bin/start-up.bat
in tomcat console you will see a message
INFO: Initializing Coyote HTTP/1.1 on http-8443

Now open a new browser and type https://localhost:8443/.

Thanks
Avi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s