首页 > 编程语言 > 详细

keytool error: java.lang.Exception: Certificate not imported, alias already exists

时间:2016-09-17 19:20:40      阅读:1602      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/z1500592/p/5879385.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!