Thursday, 9 October 2014

SSL+Tomcat 6.0

Required Tools/Softwares:

1. Tomcat 6.0
2. Eclipse
3. JDK 1.7


1. Create Dummy webapplication in eclipse

    Project Name: SSLDemo



2. Go to Java bin directory and use below command to generate keystore.

keytool -genkey -alias sslkey -keyalg RSA -keystore d:\ca\mycer

3. Open server.xml file and enable port:8443 as given below.

keystoreFile: Location of key store file
keystorePass: Password

<Connector SSLEnabled="true" clientAuth="false"
 keystoreFile="D:\ca\mycer" keystorePass="password123" maxThreads="150"
 port="8443" protocol="HTTP/1.1" scheme="https" secure="true"
 sslProtocol="TLS" />

4. Access the application using https protocol with port number:8443

After succeful SSL configuraton below error message should be displayed by browser.


 
After clicking continue we should able to see web page deployed in Tomcat.
 
 
 
 
 
 

No comments:

Post a Comment