sorin
sorin

Reputation: 170698

How to reset keystores when you do not know their password?

For some reason I got this message:

keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect

I know that I cannot "repair" the keystore, but I want to reset the keystore, but don't know how to do it, especially because I do not know the location of the default keystores.

Note: I just want the "blank" them so I restart from default. Still I wasn't even able to detect their location.

How can I list default keystores and their locations with keytool or something similar?

Upvotes: 10

Views: 35826

Answers (1)

sorin
sorin

Reputation: 170698

Just remove ~/.keystore file, which is the default keystore location.

Upvotes: 8

Related Questions