问题描述
如果证书已经存在于信任库中而没有交互提示,我如何告诉 keytool 不要导入证书。
下面会出现交互提示:
keytool -import -alias abc1 -file abc.cer -cacerts -storepass changeit
Certificate already exists in keystore under alias <abc>
Do you still want to add it? [no]: no
Certificate was not added to keystore
但是当我通过 -noprompt 时我该怎么做,因为我们通过 Java 代码调用它并且我们的实用程序不支持输入。
keytool -import -alias abc1 -file abc.cer -cacerts -storepass changeit -noprompt
Certificate was added to keystore
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)