Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

openssl is not recognized in command prompt - Android?

I want to generate application signature for my application for facebook integration in android.

In facebook integration tutorial(androidhive) i found this command line

keytool -exportcert -alias androiddebugkey -keystore "<path-to-users-directory>\.android\debug.keystore" | openssl sha1 -binary | openssl base64

when I run the command prompt its showing error-

openssl is not recognized as internal or external command

This is the path of my openssl-

D:\openssl-0.9.8k_WIN32\bin

and this is the path for .android keystore-

D:.android/debug.keystore

guide me how to get the key.

like image 311
ajey Avatar asked Sep 12 '13 05:09

ajey


1 Answers

Steps to create Hash Key.

  1. Download openssl from Openssl for Windows . I downloaded the Win32 version
  2. Unzip and copy all the files in the bin folder including openssl.exe
  3. Goto to the folder where you installed JDK for me it’s C:\Program Files\Java\jdk1.6.0_21\bin
  4. Paste all the files you copied from Openssl’s bin folder to the Jdk folder.

Then run keytool -exportcert -alias androiddebugkey -keystore "your path" | openssl sha1 -binary | openssl base64

like image 74
kinfei Avatar answered Oct 05 '22 13:10

kinfei