keytool error: java.lang.Exception: Certificate not imported, alias already exists
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了keytool error: java.lang.Exception: Certificate not imported, alias already exists相关的知识,希望对你有一定的参考价值。
Error
Command to import the certificate into
the Java keystore fails with the following error:
keytool error: java.lang.Exception:
Certificate not imported, alias already exists
Cause
Alias already exist. Needs to removed
previous alias before adding a new one.
Resolution
Make sure that you don‘t require the
previous import with the same alias. If required , Do this import with new
alias. If not, proceed with the following command.
Delete the certificate with the alias
using the following command
keytool -delete -alias
<Key> -keystore <../.../... /lib/security/cacerts>
-storepass changeit .
Then run the import command.
以上是关于keytool error: java.lang.Exception: Certificate not imported, alias already exists的主要内容,如果未能解决你的问题,请参考以下文章
keytool 错误: java.lang.Exception: 密钥库文件存在, 但为空: E:xxxxxx.jks
hive脚本出现Error: java.lang.RuntimeException: Error in configuring object和Caused by: java.lang.IndexOut