Tomcat keytool to generate .keystore

To install and configure SSL support on Tomcat 5, you need to follow these simple steps. For more information, read the rest of this HOW-TO.

  1. Create a certificate keystore by executing the following command:Windows:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA

    Unix:

    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA

    and specify a password value of “changeit”.

  2. Uncomment the “SSL HTTP/1.1 Connector” entry in $CATALINA_HOME/conf/server.xml and tweak as necessary.