Skip to content Skip to sidebar Skip to footer

Getting Fingerprint For Android Keystore Certificate On Mac

I'm following Google's tutorial on how to set up OAuth 2.0. The documentation asks me to find the debug certificate fingerprint with the following command in the terminal: keytool

Solution 1:

The command provided in the tutorial works for Windows (apparently) but not for Mac. However, this one works like a charm on Macs:

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

It adds the default password android already in the command which saves one from typing. I hope Google will fix the documentation.

Output should look like:

Alias name:androiddebugkeyCreation date:23Nov2019Entry type:PrivateKeyEntryCertificate chain length:1Certificate[1]:Owner:C=US,O=Android,CN=AndroidDebugIssuer:C=US,O=Android,CN=AndroidDebugSerial number:1Valid from: Sat Nov 23 14:57:45 CET 2019 until:MonNov1514:57:45CET2049Certificate fingerprints:SHA1:xxxxxxSHA256:xxxxxxSignature algorithm name:SHA1withRSASubject Public Key Algorithm:2048-bitRSAkeyVersion:1Warning:TheJKSkeystoreusesaproprietaryformat.ItisrecommendedtomigratetoPKCS12whichisanindustrystandardformatusing"keytool -importkeystore -srckeystore /Users/cornelius/.android/debug.keystore -destkeystore /Users/cornelius/.android/debug.keystore -deststoretype pkcs12".

Credit: @JoeNCA https://stackoverflow.com/a/28350434/7483211

Post a Comment for "Getting Fingerprint For Android Keystore Certificate On Mac"