• Register
0 votes
73 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
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:

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

9 7 4
38,600 points

Related questions

0 votes
1 answer 23 views
23 views
Problem: keytool error: java.io.ioexception: keystore was tampered with, or password was incorrect
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 3 views
3 views
Problem: I'm writing a simple akka-http webserver with Scala. I want to establish a TLS connection (webserver authentication) with a curl. I'm following the documentation reachable here . I've first created a certificate and a key for webserver (verified by rootCA. ... non-properly terminated. I've tried to start webserver also without TLS and it performs without any problem. How can I solve this?
asked May 3 muktaa 34.6k points
0 votes
1 answer 1 view
1 view
Problem: I'm writing a simple akka-http webserver with Scala. I want to establish a TLS connection (webserver authentication) with a curl. I'm following the documentation reachable here . I've first created a certificate and a key for webserver (verified by rootCA.pem created previously), and then I've converted it to a keystore file webserver.How can I solve this?
asked May 3 sumaiya simi 43.9k points
0 votes
1 answer 9 views
9 views
Problem: when I tried to access the web application via browser(Firefox), it gives out the below error. Secure Connection Failed Certificate key usage inadequate for attempted operation. Error code: SEC_ERROR_INADEQUATE_KEY_USAGE
asked Mar 27 ummesalma 29.2k points
0 votes
1 answer 60 views
60 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 269 views
269 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 54 views
54 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 39 views
39 views
Problem: Trying to sign my Android app . When I generate the keystore, I get an access denied error. How do I fix this? keytool error: java.io.filenotfoundexception: my-release-key.keystore (access is denied)
asked Feb 23 Sofia Castro 4.2k points
0 votes
1 answer 10 views
10 views
Problem: 'm trying to download a file in my application, but following exception is thrown "org.apache.catalina.connector.ClientAbortException: java.io.IOException: An existing connection was forcibly closed by the remote host" .How to fix this?
asked May 4 salim1 60.6k points
0 votes
1 answer 3 views
3 views
Problem: I'm writing a big C# application that communicates with a MS-SQL Server database. As the app grows bigger, I find myself writing more and more "boilerplate" code containing various SQL queries in various classes and forms like this: using System; using System. ... can do complex queries like the one stated above. Is there a better way of doing this? Thanks for all your suggestions folks!
asked Apr 25 Yeamin 22k points