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

Recent comments
5 days 19 hours ago
1 week 6 days ago
2 weeks 2 days ago
2 weeks 3 days ago
2 weeks 5 days ago
3 weeks 2 days ago
3 weeks 2 days ago
5 weeks 20 hours ago
9 weeks 5 days ago
9 weeks 5 days ago