• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes

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)  

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:


by (36.1k points)  
edited by