SSL creation. Deletion, Removing the forgotten keystore passowrd

you can use the following commands to delete, generate, import, export SSL certificates :

  
$JAVA_HOME/bin/keytool -delete -alias tomcat -keypass changeit
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keypass changeit -keyalg RSA
$JAVA_HOME/bin/keytool -export -alias tomcat -keypass changeit  -file %FILE_NAME%
$JAVA_HOME/bin/keytool -import -file server.crt -keypass changeit -keystore $JAVA_HOME/jre/lib/security/cacerts
$JAVA_HOME/bin/keytool -import -file server.crt -keypass changeit

 

But what if you forget your keystore password you can simply remove it by deleting the .keystore file that is located under your ${user.home}

References :

1. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html

2. http://docs.huihoo.com/oracle/docs/B14099_19/web.1012/b14013/configssl.htm

3. http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

4. http://www.bcpl.net/~j1m5path/isocodes.html

I can totally use this as a

I can totally use this as a project material, because this is a pretty amazing article. - Dennis Wong

Powered by Drupal - Design by artinet