Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Java Keytool Keystore Password Reset

Posted on 2010-11-10
8
5,033 Views
Last Modified: 2012-05-10
Hi, I'm trying to generate a self-signing key using Java Keytool but I'm getting following error:

C:\Users\spark>keytool -genkey -keyalg rsa -alias tstkey
Enter keystore password:  abc123
keytool error: java.io.IOException: Keystore was tampered with, or password was
incorrect

I previously created a keystore password, but I can't remember what it was. I deleted my JRE and JDK and reinstalled but I had no luck. Is there a way to reset the password? Where is the keystore file located?
0
Comment
Question by:shepp_it
  • 3
  • 3
  • 2
8 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34107676
you need to create a new keystore
0
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 34107726
0
 

Author Comment

by:shepp_it
ID: 34120529
Hi I'm getting following error when I used the example from above link you provided:

C:\Program Files\Java\jdk1.6.0_19\bin>keytool -keystore myKeystore -keypasswd se
cret -genkey -keyalg RSA -alias mycert
keytool error: java.lang.RuntimeException: Usage error, secret is not a legal co
mmand
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 34120778
Leave out the word 'secret' - it has to prompt you for it
0
 

Author Comment

by:shepp_it
ID: 34120924
Thank you. Can you also tell me how to delete the certificate and keystore I created?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34121233
Just delete the directory from the filesystem
0
 

Author Comment

by:shepp_it
ID: 34121267
Ok Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34121330
:)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question