I am trying to add google authentication feature in my android app and for that I need to get the Android Signing certificate SHA-1. The official tutorial says to use the below command to get the SHA-1 hash value .

In release mode

keytool -exportcert -list -v \-alias <your-key-name> -keystore <path-to-production-keystore> 

debug mode

keytool -exportcert -list -v \-alias androiddebugkey -keystore ~/.android/debug.keystore 

Now I am confused with what is this production-keystore and debug.keystore and how to get the path to production-keystore? Explanations are appreciated.

4

2 Answers

Please use below command for linux, if you don't have keystore file:

 keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 

Production keystore will generate when you are creating signed APK file.

Refer below link for information:

12

Stumble upon this but I was using Windows. I got my answer hoping to help other Windows user who came to this post.

keytool -list -v -alias androiddebugkey -keystore C:\Users\<name>\.android\debug.keystore 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy