Solved

Java Keytool Keystore Password Reset

Posted on 2010-11-10
8
4,636 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now