khurram khurram - 1 year ago 176
Android Question

Openssl is not recognized as an internal or external command

I wish to genrate application signature for my app which will later be integrated with facebook.

In a facebook's tutorial I found this command

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

and It is written over there that by running this on cmd my process of generating the signature will start

this command gives an error :

openssl is not recognized as an internal or external command

Kindly guide how to get rid of this

Answer Source

Well at the place of openssl ... you have to put actually the path to your openssl folder that you have downloaded. Your actual command should look like:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | "C:\Users\abc\openssl\bin\openssl.exe" sha1 -binary | "C:\Users\abc\openssl\bin\openssl.exe" base64

Remember, path that you will enter will be the path where you have installed the openssl...hope this helps..:-)


you can download openssl for windows 32 and 64 bit from the respective links below:

OpenSSL for 64 Bits

OpenSSL for 32 Bits

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download