Created
March 29, 2012 12:23
-
-
Save folkengine/2236837 to your computer and use it in GitHub Desktop.
TOMCAT SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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