Other operations you can perform with keytool
This page describes a few of the other options that you can perform with keytool.
Listing the contents of a keystore
To list the contents of a keystore, invoke keytool as follows (not all of the possible parameters are shown here):
keytool
-list
-keystore johnkeystore
-alias johnkey02
-storepass johnstorepass
-v
Changing a keystore password
To change a keystore password, invoke keytool as follows (not all of the possible parameters are shown here):
keytool
-storepasswd
-keystore johnkeystore
-storepass johnstorepass
-new newstorepass
-v
Changing a key password
To change a key password, invoke keytool as follows (not all of the possible parameters are shown here):
keytool
-keypasswd
-keystore johnkeystore
-storepass johnstorepass
-alias johnkey02
-keypass johnstorepass
-new newkeypass
-v