get android release Certificate Fingerprints

Katedral Pillon picture Katedral Pillon · Jul 11, 2016 · Viewed 11.7k times · Source

I am using Android Studio on Mac El Capitan. How do I get the release Certificate Fingerprints? I need it for Firebase. I am not sure exactly how to get it.

Answer

Evin1_ picture Evin1_ · Jul 11, 2016

Just to test it (with the debug fingerprint), run the following command in any directory with the terminal.

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

Then copy the SHA1 value and paste it into your Firebase console.

Fingerprints


Be careful, the above will work for the debug environment, if you want to set up the release fingerprint you will have to create a keystore, check out this post to see how to do it, and then run the same command but instead of ~/.android/debug.keystore you should put ~/YOUR/PATH/TO/KEYSTORE

$ keytool -exportcert -alias androiddebugkey -keystore ~/YOUR/PATH/TO/KEYSTORE -list -v

Android: What is a keystore file, and what is it used for?