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.. :)
Steps : Go to facebook developer's page : https://developers.facebook.com/ Open the App tabs and than click the Setting. Paste the generate hashkey on HashKey's field = If you don't have it yet, get your key hash part of code.
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 ...... :)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With