Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 226
sorin Avatar asked Jul 23 '12 14:07

sorin


1 Answers

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

like image 109
sorin Avatar answered Oct 17 '22 23:10

sorin