• 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

Please log in or register to answer this question.

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 24 views
Can anyone help me with how to solve this issue? Any help is greatly appreciated.
asked Dec 27, 2020 TeamScript 13.5k points
0 votes
1 answer 236 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 1 view
1 view
Problem: When the callee throws an exception i.e. void showfile() throws java.io.IOException the caller should handle it or throw it again. And also learn naming conventions. A class name should start with a capital letter. How can i solve this?
asked 5 hours ago Ali 4.3k points
0 votes
1 answer 30 views
I have already thrown java.io.IOException, but still, it shows these errors.
asked Dec 28, 2020 TeamScript 13.5k points
1 vote
1 answer 1 view
1 view
Problem: keytool error: java.io.filenotfoundexception: my-release-key.keystore (access is denied)
asked 1 day ago Sofia Castro 1k points
0 votes
1 answer 11 views
Can anyone help me to find out the issue? Where is the problem with the server?
asked Feb 12 TeamScript 13.5k points
0 votes
1 answer 6 views
0 votes
1 answer 17 views
solve this error.
asked Jan 21 TeamScript 13.5k points
0 votes
1 answer 24 views
What can cause this exception?
asked Dec 19, 2020 TeamScript 13.5k points