Keytool error keystore was tampered with or password was incorrect

The issue is simple to solve but you may spend ages looking for a fix

1)Make sure you are in this directory, open a command prompt using administrator rights:

C:\Program Files\Java\jdk1.8.0_191\bin\


C:\Program Files\Java\jdk1.8.0_191 <----!!!!

Make sure you are inside the Bin folder, this is super important.

2)Now retry your command:

keytool -genkey -v -keystore myApp.keystore -alias myAppAliasName -keyalg RSA -keysize 2048 -validity 100000

3)If you wish to change your Keystore to a PKCS12 Format, simply run this command(Modify it to your own paths):

keytool -importkeystore -srckeystore myApp.keystore -destkeystore myApp.keystore -deststoretype pkcs12

Same again, run the above command in the bin folder.

Et voila! Problem solved!

Please leave me a message if this worked for you.





















As an Amazon Associate I earn from qualifying purchases. This post may contain affiliate links which means I may receive a commission for purchases made through links.