how to add a alias to an existing keystore file

June 18, 2013

use this command in the terminal:

keytool -genkeypair -alias new_alias -keypass halfquest -validity 9999 -keystore existing.keystore

after this line, type the password and press enter for several times.

then a new alias has been added to this keystore, use this command to review all the alias:

keytool -list -keystore halfquest.keystore

· EOF ·