Technical Notes

Generate SHA Certificate Fingerprint for Android App Configuration

· 1 min read · #hash #sha-1 #firebase #android-app

The following steps generate the SHA-1 (and SHA-256) certificate fingerprint necessary for Firebase and for registering an Android app with Google using OAuth2 client and API key.

Run the command below on PowerShell from the project root:

cd android; .\gradlew.bat signingReport

The output will be of the type,

----------
Variant: release
Config: debug
Store: C:\Users\<username>\<projectname>\android\app\debug.keystore
Alias: androiddebugkey

The SHA1 and SHA256 lines appear below the aforementioned block of code and should be copied and pasted on Firebase (Project settings → Your apps) or into Google Cloud Console when creating OAuth clients / API keys.