keytool - 如何从 keystore 中删除 2 个别名条目?

标签 keytool

我已将多个证书(带有别名)导入 pc.keystore .我想从 keystore 中删除 2 个别名(mydomain 和 ourdomain)条目。

我知道我们可以使用别名从 keystore 中删除一个条目,例如:

keytool -delete -alias mydomain -keystore pc.keystore

但我想从 pc.keystore 中删除两个别名(mydomain 和 ourdomain)条目.有什么选择可以实现这一目标吗?

提前致谢。

最佳答案

keytool -delete -alias  name_of_certificate -keystore "C:\Program Files\Java\jdk1.8.0_192\jre\lib\security\cacerts" -storepass changeit

关于keytool - 如何从 keystore 中删除 2 个别名条目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16688873/

相关文章:

tomcat - 如何以编程方式使用 keytool?

ssl - 骡子 ESB 3.2.x : HTTPS Transport bad_certificate error?

ssl - 获取 "No certificate matches private key"

java - keystore 中私钥和签名证书之间的链接

java - 是什么导致 keytool 错误 "Failed to decrypt safe contents entry"?

java - 从java中的自签名.jks文件中提取私钥

ssl - 相互认证 PBOX00052 : Supplied credential did not match existing credential for alias

java - 企业 Java Webstart 分发 : use site-wide accepted certificate to sign a code-signing certificate

java - 导入我的证书时出现 jdk keytool 异常

java - key 工具-genkey 错误 : Keystore file does not exist