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 :-

[adAuto]
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.
bh-ppc-banners-dynamic-760x80
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-2.6.2.2.63.amzn1-x86_64 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

YOU MAY ALSO LIKE....

Leave a Reply

4 Comments on "How to Configure SSL HTTPS in Tomcat within 2 mins"

avatar
166
Sort by:   newest | oldest | most voted
icc t20
Guest

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

KaseyHDrop
Guest

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.
Guest

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

CecilaPCrout
Guest

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.
Thanks!

wpDiscuz