2013-10-19

Change keystore passwords

Java keystores use two passwords. If you want to change both these are the steps:

  1. Change the password used to protect the integrity of the keystore contents:
  2. keytool -storepasswd -keystore this-is-the-file.keystore
  3. Change the password under which the private/secret key identified by alias is protected:
  4. keytool -keypasswd -keystore this-is-the-file.keystore -alias this-is-the-key

Where

  • this-is-the-file.keystore is the file to store passwords

  • this-is-the-key is the alias of our private/public password

Happy hacking!!! :-)

No hay comentarios: