keytool

Description

Command

change key password

keytool -keystore keystore.jks -keypasswd -alias am.uwo.ca -keypass "oldpassword" -new ""newpassword

change store password

keytool -keystore cascadestore -storepasswd -new changeit
Enter keystore password:  xxxx

export a certificate

keytool -keystore cascadestore -export -rfc -alias cms.uwo.ca -file cms.uwo.ca.cert

import a cert

keytool -keystore cacerts -import -alias ThawteSSLCA -file /tmp/dd

delete

-keystore keystore -delete -alias orbit

importing private keys

into a Java keystore using keytool

keytool -importkeystore \

-deststorepass password \

-destkeypass password \

-destkeystore pskey

\-srckeystore p6.uwo.ca.p12 \

-srcstoretype PKCS12  \

-srcstorepass password   -alias     p6.uwo.ca

You can use keytool to import private keys and certificates from one keystore to another keystroe.

keytool
-importkeystore \
-deststorepass [new_keystore_pass] \
-destkeypass [new_key_pass] \
-destkeystore [keystore.jks] \
-srckeystore [keystore.p12] \
-srcstoretype PKCS12 \
-srcstorepass [pass_used_in_p12_keystore] \
-alias [alias_used_in_p12_keystore]


Published on  and maintained in Cascade CMS.