Programmers learn & share
0 votes
35 views

Problem :

I am getting bellow error while generating certificates on my local machine.
java.io.ioexception: keystore was tampered with, or password was incorrect
by (6.9k points)   | 35 views

1 Answer

0 votes

Solution :

I think you are on windows machine and your home is abc

When you run bellow command

keytool -genkey -alias tomcat -keyalg RSA

As you are not specifying an explicit keystore it will try to generate  keystore C:\users\abc>.keystore and also you need to provide old password for .keystore I think you are providing your version a new one.

  1. delete .keystore from C:\users\abc> location and try the command

  2. or try following command which will create a new xyzkeystore:

    keytool -genkey -keystore xyzkeystore -alias tomcat -keyalg RSA

Further Readings:

https://github.com/escline/InstallCert/issues/4

by (36.1k points)  
edited by
2,218 questions
2,683 answers
59 comments
241 users