Keytool: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Manage the storage of certificates | Manage the storage of certificates (aka keystore or trststore) | ||
;keytool -import -v -noprompt -trustcacerts -file <path_to_CA_certificate> -alias <certificateAlias> -keystore <path where the keystore is/will be> -storepass <password for keystore> | ;keytool -import -v -noprompt -trustcacerts -file <path_to_CA_certificate> -alias <certificateAlias> -keystore <path where the keystore is/will be> -storepass <password for keystore> | ||
| Line 7: | Line 7: | ||
:List certificates in the keystore | :List certificates in the keystore | ||
;keytool -delete -alias | ;keytool -delete -alias <alias> -keystore <path where the keystore is> | ||
:Delete a certificate from the keystore | :Delete a certificate from the keystore | ||
;keytool -export -alias <alias> -keystore <path where the keystore is> -rfc | |||
:Export a certificate from the keystore in Base64-encoded PEM format | |||
Latest revision as of 13:18, 17 July 2024
Manage the storage of certificates (aka keystore or trststore)
- keytool -import -v -noprompt -trustcacerts -file <path_to_CA_certificate> -alias <certificateAlias> -keystore <path where the keystore is/will be> -storepass <password for keystore>
- Import a certificate into the keystore, create the keystore if it does not exist yet.
- keytool -list -keystore <path where the keystore is>
- List certificates in the keystore
- keytool -delete -alias <alias> -keystore <path where the keystore is>
- Delete a certificate from the keystore
- keytool -export -alias <alias> -keystore <path where the keystore is> -rfc
- Export a certificate from the keystore in Base64-encoded PEM format