To install and configure SSL support on Tomcat x, you need to follow these simple steps
1. Download jsse from the below link:
http://java.sun.com/products/archive/jsse/
2. After download,either make it an installed extension on the system (extract the zip and copy the jar files jcert.jar, jnet.jar, and jsse.jar into jre/lib/ext ),
3. or else set an environment variable JSSE_HOME that points at the directory into which you installed JSSE.
4. To create a new keystore from scratch, containing a single self-signed Certificate, execute the following from a terminal command line
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
5. This command will create a new file, in the home directory of the user under which you run it, named ".keystore".
6. After executing the above command, it will ask for the below details.
Enter password: changeit
Enter firstname and last name: Saikumar Borra
Enter your organizational unit : Java
Enter you Company Name: XXXXX
Enter your city : Hyd
Enter your State/province: AP
Enter the code of your conuntry: IN
Display all the data which you entered so far and ask for confirmation: Y
Fina;ly it will ask for password: changeit
Now the keystore and certificate part is done.
7. Uncomment the "SSL HTTP/1.1 Connector" entry in $CATALINA_HOME/conf/server.xml and tweak as necessary.
The configuration of SSL on Tomcat server is completed.
Now start the server and open the url https://localhost:8443/
For more detail go through the below url:
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment