keytool -exportcert -alias androiddebugkey -keystore "C:\...\debug.keystore" | "PATH_SSL\bin\openssl" sha1 -binary | "PATH_SSL\bin\openssl" base64

Viewed 22

I need to generate a Development Key Hash because I am getting this error on my Facebook Login implementation for Android app:

enter image description here

The official Facebook documentation at https://developers.facebook.com/ when I access it from my Facebook account, provides this information:

enter image description here

They provide the following code for Windows:

keytool -exportcert -alias androiddebugkey -keystore "C:\Users\USERNAME\.android\debug.keystore" | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" sha1 -binary | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" base64

I created the following empty folder on my computer: C:\Users\jmont\Documents\key:

enter image description here

I ran the following from the command line:

C:\Program Files\Java\jre1.8.0_341\bin>keytool -exportcert -alias androiddebugkey -keystore "C:\Users\jmont\Documents\key\debug.keystore" | "C:\Program Files\openssl-0.9.8k_WIN32\bin\openssl" sha1 -binary | "C:\Program Files\openssl-0.9.8k_WIN32\bin\openssl" base64
tR7PbbRhsiXgMNogn/cCg5DAl6A=

I was expecting to see a KEYSTORE File at C:\Users\jmont\Documents\key, but the folder remains empty. No error was thrown from my execution of the command shown above, and apparently the Key Hash tR7PbbRhsiXgMNogn/cCg5DAl6A= was successfully generated. Where did the debug.keystore file was exported to? Where can I find that KEYSTORE File? Thank you.

0 Answers
Related