November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

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

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>