Remove an alias from the keystore or truststore
About this task
You can remove an alias from the keystore or truststore on a master domain manager, an agent, or the Dynamic Workload Console by completing the following steps:
Procedure
-
Browse to one of the following installation bin paths, according to the
component from which you want to delete the alias:
- Master domain manager
<MDM_INST_PATH>/TWS/bin/certman, where<MDM_INST_PATH>is the master domain manager installation directory.- Dynamic Workload Console
<DWC_INST_PATH>/bin/certman, where<DWC_INST_PATH>is the Dynamic Workload Console installation directory.- Agent
<AGENT_INST_PATH>/TWS/bin/certman, where<AGENT_INST_PATH>is the agent installation directory.
-
Remove the alias by running the following command:
certman delete -alias <alias> -storetype <KEY|TRUST|ALL> [-storepasswd <store pwd>] [-agentscope] [-workdir <work dir>]Where:
- alias
- Specify the alias to remove.
- storetype
- Specify
KEYto remove the alias from the keystore,TRUSTto remove the alias from the truststore, orALLto remove the alias from both the keystore and truststore.Note: SpecifyingALLwithout the alias being actually present on both the keystore and the truststore, leads to the failure of thecertman deletecommand. - storepasswd
- Optionally, specify the password of the keystore or truststore
on the master domain manager.Note: If the password contains wildcards, enclose the password in single quotes. For example:
-keypasswd 'passw!rd' - agentscope
- Optionally, add the parameter to the command to extract
certificates from the keystore of the agent on which you are
launching Certman.Note: To target the keystore or truststore of a master domain manager, omit the
agentscopeoption and run the command separately. - workdir
- Optionally, specify the working directory used by the command for storing data while running. When the command stops running, the working directory is deleted. Ensure you have write access to the specified directory and enough space is available.