Skip to content

Instantly share code, notes, and snippets.

@folkengine
Created March 29, 2012 12:23
Show Gist options
  • Save folkengine/2236837 to your computer and use it in GitHub Desktop.
Save folkengine/2236837 to your computer and use it in GitHub Desktop.
TOMCAT SSL
To create the tomcat ssl keystore
keytool -genkeypair -alias tomcat -keyalg RSA -keysize 1024 -validity 365 -keystore %CATALINA_HOME%\conf\keystore
To export it as a certificate
keytool -export -keystore "%CATALINA_HOME%\conf\keystore" -alias tomcat -file "%CATALINA_HOME%\conf\tomcat.cer"
To import into the JRE cacerts
keytool -import -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -alias tomcat -file "%JAVA_HOME%\conf\tomcat.cer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment