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 :





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