How to fix: keytool error Keystore was tampered with, or password was incorrect

1

When trying to know the Sha-1 fingerprint of the keystore of my studio android project, for production, it is showing me this error, the alias and the passwords are correct:

I'm doing it on the console from the location:

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

and executing the command:

keytool -exportcert -list -v -keystore C:\keystore\certificado.jks
    -alias aliasEjemplo -storepass Password-1 -keypass Password-2

I appreciate the help.

    
asked by Ivan Alfredo 06.04.2018 в 18:23
source

1 answer

1

remember that the password of your Keystore and your alias may not be the same, this is defined when you create the Kesytore according to the path of the keystore that loads I suppose it is your production Keystore.

If you type the same or this is incorrect you get the message:

  

Caused by: org.gradle.tooling.BuildException: Failed to read key ...   from store "C: ... \ myown.keystore": Keystore was tampered with, or   password was incorrect at   com.android.build.gradle.internal.scope.OutputScope.lambda $ parallelForEachOutput $ 10 (OutputScope.java:241)

It is important to save this information, although the password can be the same, you can also define a different one, but if the data is not written correctly, the aforementioned error occurs.

    
answered by 06.04.2018 / 18:30
source