Keytool is a java utility to manage SSL key databases (stores). Here are a couple of options for using this tool
- List the certificates in the keystore
[code]keytool -list -keystore NAME_OF_KEYSTORE_FILE [/code]
- Export a particular certificate from the keystore
[code]keytool -export -alias ALIAS_NAME_OF_CERT -keystore NAME_OF_KEYSTORE_FILE [/code]
- Import a certificate into the keystore
[code]keytool -import -alias ALIAS_NAME_YOU_WANT -keystore NAME_OF_KEYSTORE_FILE -file NAME_OF_CERT_FILE_TO_IMPORT [/code]
1 Response
[…] up on my earlier post about using keytool to import and export certificates into a keystore. Here is some more information on using openssl to download the certificate from a remote server […]