Generate SHA for FACEBOOK
- Download openssl from Google code (If you have a 64 bit machine you must download openssl-0.9.8e X64 not the latest version)
- Extract it. Create a folder- OpenSSL in C: / and copy all files here
- Find “debug.keystore” file path. Most likely it will be inside “C:\Users\\.android” folder. However, if you still don’t find then perform a search. I am sure you are lucky enough to get it.
- Find keytool.exe path. It will be inside your java/bin directory. In my system, it is under “C:\Program Files\Java\jdk1.6.0_30\bin”
- Open command prompt (Run-> cmd->start) and go to java /bin folder (cd “C:\Program Files\Java\jdk1.6.0_30\bin” command will do it for you)
- Now you run the below command.
- Path for Debug
keytool -exportcert -alias androiddebugkey -keystore "C:\Documents and Settings\Administrator\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary |"C:\OpenSSL\bin\openssl" base64
Path For Release
keytool -exportcert -alias <RELEASE_KEY_NAME> -keystore D:\Github_Code\Chambu-Android-New\app\certificate\Chambu_keystore | "C:\OpenSSL\bin\openssl" sha1 -binary | "C:\OpenSSL\bin\openssl" base64
Comments
Post a Comment