Java – Keytool Error: Keystore Tampered or Incorrect Password

javakeystore

I am getting following error while generating certificates on my local machine.

C:\Users\abc>keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect

I think there is some problems in jdk version.I ran the same command on my collegues machine and it is working fine.

Please share your inputs.

Best Answer

I solved it by using the default password for cacerts keystore : 'changeit'