How to Configure SSL HTTPS in Tomcat within 2 mins

Configuration of SSL HTTPS in tomcat in Linux involves 2 easy steps. Creating the Keystore using keytool utility and configure in the tomcat server.xml file.


Short Intro about SSL – Secure Socket Layer :-

SSL, or Secure Socket Layer, is a technology which allows web browsers and web servers to communicate over a secured connection. This means that the data being sent is encrypted by one side, transmitted, then decrypted by the other side before processing. This is a two-way process, meaning that both the server AND the browser encrypt all traffic before sending out data.
Lets start with the configuration of SSL HTTPS in Tomcat.

Pre-requite is to have Java to be installed. Lets check that in the server by issuing this command,

# java -version
java version "1.7.0_91"
OpenJDK Runtime Environment (amzn- u91-b00)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)

If Java is not installed, Please follow the article for Installation of Java JDK for Linux flavors such as RHEL or CentOS.

Step 1:- Creating the KeyStore file using keyGen Utility of Java

# cd %JAVA_HOME/bin

then type-in the keytool command,

# keytool -genkey -alias Tomcat -keyalg RSA

Shell will prompted to ask few details about Keystore as follows


Leave a Reply

4 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
4 Comment authors
CecilaPCroutVarun S.KaseyHDropicc t20 Recent comment authors
newest oldest most voted
icc t20

Wow! Finally I got a weblog from where I know
how to truly get valuable information regarding my study and knowledge.


I much like the valuable information you supply on your own articles.
I’ll bookmark your weblog and test once more here frequently.

I’m quite certain I’ll be informed plenty of new
stuff right below! All the best for these!

Varun S.

Very helpful ! At least now I can easily find important relevant information rather than going through tons and tons of forums !


When someone writes an post he/she retains the plan of any user within his/her mind that how a user can understand it.
Therefore that’s why this post is outstdanding.