Skip to main content

Generate SHA-1 Fingerprint Manually

In this guide we will create SHA-1 Fingerprint manually using a terminal for Mac OS or Linux and command prompt for Windows.

Debug Fingerprint#

In this section we will create a debug certificate SHA-1 Fingerprint manually using a terminal for Mac OS or Linux and command prompt for Windows.

In a terminal copy the following command and press enter

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.

Finally this will print the fingerprints for the debug certificate like below:

Result
Certificate fingerprints:
MD5: E6:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:25
SHA1: CD:FD:FF:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:60:CC:6C
SHA256: 9C:F2:85:F2:BF:AF:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:2F:E2:5B:48:21:A1

Copy the SHA-1 Fingerprint value and save somewhere for later use.

Release Fingerprint#

In a terminal copy the following command and press enter to get the debug certificate fingerprint:

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

Replace the <your-key-name> with the key alias you entered while creating the release keystore.

Replace the <path-to-production-keystore> with the path where your release keystore is located.

The keytool utility prompts you to enter a password for the keystore. The password for it will be the same password which you entered while creating your release keystore.

After you have edited your values into the command it should look something like this:

Example after editing your values
keytool -list -v -alias "my_alias" -keystore "path/to/my/upload.keystore"

Finally this will print the fingerprints for the debug certificate:

Result
Certificate fingerprints:
MD5: E6:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:25
SHA1: CD:FD:FF:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:60:CC:6C
SHA256: 9C:F2:85:F2:BF:AF:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:2F:E2:5B:48:21:A1

Copy the SHA-1 Fingerprint value and save somewhere for later use.

Your debug and release SHA-1 Fingerprint values are generated based on the debug and release keystore. Save these values for later use. You can now follow the guide again from where you came to this section.