Delete Aliased Certificate from your Trust Store
An aliased certificate may be deleted from a trust store if it is no longer desired.
Required inputs
- trust store filename (for example, "jssecacerts" or "cacerts")
- trust store password (for example, "changeIt")
- alias (for example, "ca_myserver")
Procedure: Delete Certificate from Trust Store
Follow this procedure if one needs to delete an aliased certificate authority from a trust store.
- Open a command window
- Ensure that the command window contains the JRE\bin directory in its path
set path=%path%;C:\j2sdk1.4.2_02\bin
- Navigate the command window to a private directory which will contain the server's trust store file
(for example, <java-home>\lib\security\)
- Delete the aliased certificate authority from the trust store.
- keytool -delete -alias <ca_alias> -keystore <truststore_filename> -storePass <truststore_password>
(for example, keytool -delete -alias ca_myserver -keystore jssecacerts -storepass changeIt )