keytool错误:java.io.IOException:keystore was tampered with,or password was incorre

keytool错误:java.io.IOException:keystore was tampered with,or password was incorrect
2012-01-15 15:26

 

 

 

D:\>keytool-import -trustcacerts -alias javacas -file "D:/Tomcat 6.0/conf/myserver.cert" -keypass 123456  -keystore"%JAVA_HOME%/jre/lib/security/cacerts"

 

keytool生成根证书时出现如下错误:

keytool错误:java.io.IOException:keystore was tampered with,or password was incorrect

 

原因是在指定目录下cacerts文件已将存在,备份后移除,再执行命令Ok

你可能感兴趣的:(exception)