tigerden
tigerden

Reputation: 728

Facebook Key Hash for Play Store Release

I have created a hash key for my android app which is using Facebook SDK. However, now I want to create the hash key for 'release' version of my app. For that I am using a different keystore.

I have the following syntax :

keytool -exportcert -alias MY_ALIAS_HERE -keystore ~/path/to/my/android.keystore | openssl sha1 -binary | openssl base64

Here, MY_ALIAS_HERE is the alias present in that keystore file? Or something other? Also, the password is 'android' or something else like the password for that alias in keystore file?

Thanks a lot.. :)

Upvotes: 6

Views: 3520

Answers (2)

mnsalim
mnsalim

Reputation: 955

mdDroid answer is correct. You just missed to give the path of your openssl. if you don't find openssl.exe file in your C: drive, just download openssl from here. Then replace "openssl" with the path of openssl.exe file like

C:\bin\openssl

i install openssl in C: drive thats why this is the path of my openssl, your openssl path should be the path of openssl.exe files location. Now try the ans of @mdDroid. you should get your key hash. Happy coding ...... :)

Upvotes: 2

mdDroid
mdDroid

Reputation: 3195

Replace my path and alias to your,

"C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe" -exportcert -alias manoj -keystore c:\users\manoj\desktop\manoj.kp | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\OpenSSL-Win32\bin\openssl base64

Upvotes: 1

Related Questions