Professional Documents
Culture Documents
Authenticating Your Client - Google Play Services - Google For Developers
Authenticating Your Client - Google Play Services - Google For Developers
Authenticating Your Client - Google Play Services - Google For Developers
Certain Google Play services (such as Google Sign-in and App Invites) require you to
provide the SHA-1 of your signing certificate so we can create an OAuth2 client and
API key for your app.
keytool -list -v \
-alias <your-key-name> -keystore <path-to-production-keystore>
keytool -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
The keytool utility prompts you to enter a password for the keystore. The default
password for the debug keystore is android. The keytool then prints the fingerprint to
the terminal. For example:
Note: When using Play App Signing, the upload key certificate will be different than the app signing
key certificate.
# APK file
keytool -printcert -jarfile app.apk
# AAB file
keytool -printcert -jarfile app.aab
Note: When using Play App Signing, the signature of the binary signed by the upload key certificate
will be different than the binary distributed by Google Play.
$ ./gradlew signingReport
The signing report will include the signing information for each of your app's variants:
To learn more about digital signing on Android, see Signing Your Applications
(//developer.android.com/tools/publishing/app-signing.html).
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution
4.0 License (https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the
Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0). For details, see the Google
Developers Site Policies (https://developers.google.com/site-policies). Java is a registered trademark
of Oracle and/or its affiliates.