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

Keytool error: Java. IO. IOException: keystore was tampered with, or the password was incorrect

The inscription 2012-01-15

D:\> Keytool – import – trustcacerts – alias javacas – the file “D:/Tomcat 6.0/conf/myserver. Cert” – keypass 123456 – keystore “% JAVA_HOME %/jre/lib/security/cacerts”

The following error occurred when keytool generated the root certificate:
Keytool error: Java. IO. IOException: keystore was tampered with, or the password was incorrect

The reason is that the cacerts file will exist in the specified directory, backup it, remove it, and then execute the command Ok

Read More: