Delete a certificate from a keystore with keytool
It might be necessary to remove a certificate, e.g. if it was added by accident, from a keystore. To do so, follow these instructions:
- Make a work copy of your keystore on which we're going to make modifications.
- Identify the alias of the wrong certificate using the following command:
keytool -list -v -keystore keystoreCopy.jks
keytool -delete -alias aliasARetirer -keystore copieKeystore.jks
Last edited on 07/24/2020 09:15:12 --- [search]