How to Obtain Signing Certificate Fingerprint (Sha1) for Oauth 2.0 on Android

How to obtain Signing certificate fingerprint (SHA1) for OAuth 2.0 on Android?

Start an export process to create an apk for your app and use your production key. The very last page displays both your SHA1 and MD5 certificate fingerprints Sample Image

SHA-1 fingerprint of keystore certificate

Follow this tutorial for creating SHA1 fingerprint for Google Map v2

For Debug mode:

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

for Release mode:

keytool -list -v -keystore {keystore_name} -alias {alias_name}

example:

keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test

On windows, when keytool command is not found, Go to your installed JDK Directory e.g. <YourJDKPath>\Java\jdk1.8.0_231\bin\, open command line and try the above commands for debug/release mode.

Another way of getting your SHA1 OR SHA-256 use ./gradlew signingReport

For more detailed info visit
Using Gradle's Signing Report

How to add multiple SHA1 fingerprints to my Android App for testing?

Go to Google Cloud Platform Console or Firebase. You'll find the project there. Click on the project and you'll get into the dashboard of the same. In the bottom of the dashboard there'll be SHA key. Click add key and add the new key there. The Google Services which you have used in the app will run fine now.

Get SHA1 fingerprint certificate in Android Studio for Google Maps

I got my Answer, it was quit simple.
Open Terminal,
Type command:

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

Press Enter: You will get the following info, and SHA1 can be seen there.

.....

Certificate fingerprints:

 MD5:  79:F5:59:................FE:09:D1:EC

SHA1: 33:57:0A:C9:..................:91:47:14:CD

SHA256: 39:AA:23:88:D6:...................33:DF:61:24:CB:17:47:EA:39:94:99

.......

Can android certificate fingerprint sha1 use in firebase and Google Place API?

Key

Yes you can use sha1 in firebase and Google Place API. Because sha1 key generate only one time in same PC .If you want second time then it can not generate.

for more information please follow this link.

https://developers.google.com/drive/android/auth

How to get Signed SHA1 Fingerprint in Android Studio for Relase Mode?

Through command goto your java directory , below is the directory structure

.../jvm/jdk1.7.0/bin

After that type the command

keytool -list -v -keystore /home/hb/Documents/Testing.jks -alias testing -storepass testing -keypass testing

here Testing.jks is the project keystore, alias,storepass,keypass which you have given at the time of generating keystore.

SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC , How to generate SHA1 Release Keys in Mac?

DEBUG:

  1. Click on the Gradle tab on the right hand side of the view.

  2. Go to the ROOT folder -> Tasks -> android -> signingReport

  3. Double click, this will build with the signingReport and post in your bottom view your SHA1.

RELEASE:

  1. In android studio. Build -> Generate Signed APK... and click Next

  2. Copy your key store path and key alias.

Sample Image


  1. Traverse to the "bin" folder of the jdk path present in Java.

  2. Open terminal and enter:

    keytool -list -v -keystore "key store path" -alias "key alias"

  3. Enter your key password and this will print out your release SHA1.



Related Topics



Leave a reply



Submit