Reputation: 875
I followed Steps to create Hash Key.
Downloaded openssl
Unzipped and copied all the files in the bin folder including openssl.exe
Pasted all the files copied from Openssl’s bin folder to the Jdk bin folder.
Then i used following command on openssl.exe terminal window
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Joelle.android\debug.keystore | openssl sha1 -binary | openssl enc -a -e
but it is throwing following error
openssl error :'keytool is invalid command'
Please guide me ...
thanx
Upvotes: 0
Views: 2640
Reputation: 2765
Instead of just writing keytool, you must specify full path of it, i.e. In my case the path is:
C:\Program Files (x86)\Java\jre6\bin\keytool.exe
Upvotes: 0
Reputation: 28093
Keytool is usually found in JRE bin folder in my case it is present in
C:\Program Files\Java\jre6\bin
So you should write
cd C:\Program Files\Java\jre6\bin
then
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Joelle.android\debug.keystore | openssl sha1 -binary | openssl enc -a -e
There is nice tool present
try to generate Key Hash with this tool http://www.easyfacebookandroidsdk.com/download/keyhash.zip
Upvotes: 5
Reputation: 910
Try using
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Joelle.android\debug.keystore | openssl sha1 -binary | openssl base64
Upvotes: 1