Tuesday, 7 February 2023

How to delete an entry by alias in keystore?

 Syntax

keytool -delete -alias {entry_alias} -keystore {keystore_file}

 

Example

keytool -delete -alias java-blogspot -keystore myKeystore.jks

$ keytool -delete -alias java-blogspot -keystore myKeystore.jks
Enter keystore password:  

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore myKeystore.jks -destkeystore myKeystore.jks -deststoretype pkcs12".

 

 

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment