how to solve the error: keytool error Keystore was tampered with or password was incorrect
The issue is simple to solve
1)Make sure you are in this directory, open a command prompt using administrator rights:
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.
Please leave me a message if this worked for you.