Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get existing Android key hash Certificate fingerprint (SHA1)

I am making an Android app and am using the Facebook SDK. I generated the Android Key Hash by executing:

keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64

How can I retrieve the Certificate fingerprint <SHA1>?

like image 611
lschlessinger Avatar asked May 28 '14 01:05

lschlessinger


People also ask

How do I get a SHA-1 certificate fingerprint?

Open a terminal and run the keytool the utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints.

Where can I find SHA-1 in Android?

Click on the Gradle tab on the right hand side of the Android Studio window. UPDATE: (Newer versions) In case you don't find an android folder here, go to :app instead of root, navigate to Tasks>android and you'll find signingReport. Double click on signingReport, this will build and post the SHA1 in the bottom view.


1 Answers

After a little research, this worked for me:

keytool -list -alias androiddebugkey -keystore %HOMEPATH%/.android/debug.keystore
like image 92
lschlessinger Avatar answered Oct 19 '22 02:10

lschlessinger