Setting up SSL on Tomcat with a Self-Signed Certificate

This is a pretty common thing to need to do. Today I had to do this, and, even though I have done it many times before, I had to go searching to find out how to do it.

Tech Tracer has a nice, step-by-step set of instructions: http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/

  1. #1 by gopala krishna on April 1, 2012 - 10:28 pm

    My Enviroment is :
    Java: C:\Program Files\Java\jdk1.6.0\bin
    Tomcat : D:\Apache Software Foundation\Tomcat 6.0
    Generating the KeyStore file
    C:\Program Files\Java\jdk1.6.0\bin
    keytool -genkey -alias techtracer -keypass ttadmin -keystore techtracer.bin -storepass ttadmin
    Configured Tomcat for using the Keystore file
    1. My http port no :

    2. . Put the techtracer.bin file in the webapps directory of Tomcat
    3. Configured Https Port

    I started the server with http://localhost:8080
    Its working fine
    But while its not working fine with https://localhost:8443

Leave a comment