• Register
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
6 5 3
6,930 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:


9 7 4
38,600 points

Related questions

0 votes
1 answer 193 views
Problem : I am making rest call to IBM Cloud BPM. Some times calls are working fine.But sometimes it is giving following error. minecraft java.io.ioexception an existing connection was forcibly closed
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 28 views
In my ubuntu operating system I was trying to run my java program that gives me the following error "java.io.IOException: No space left on device" at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:53) how can I ignore such an error?
asked Mar 11 LizzyM 6.1k points
0 votes
2 answers 204 views
Problem : I am getting bellow error while using keytool keytool error: java.lang.exception: public keys in reply and keystore don't match
asked Oct 19, 2019 peterlaw 6.9k points
1 vote
2 answers 288 views
Problem : I am very new to Java. I am trying to execute my Java code but facing below error. filecontent.java:25: unreported exception java.io.IOException; must be caught or declared to be thrown showfile(); ^ filecontent.java:88: unreported exception java.io. ... or declared to be thrown showfile(); ^ I have already thrown the java.io.IOException, however still it shows me above errors.
asked Dec 28, 2019 alecxe 7.5k points