I am reading an development guide of Facebook Developers at here
It says that I must use keytool to export the signature for my app such as:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
I do not know how to find the keytool in order to run it. I tried to open a Windows command prompt and paste the above command, but it did not work.
keytool is located in JDK bin directory ($JAVA_HOME/bin). JAVA_HOME is your JDK installation directory. To use that command line you should also include $JAVA_HOME/bin to your PATH environment variable.
To get android key hash code follow these steps (for facebook apps)
cd C:\Program Files\Java\jdk1.6.0_26\bin
keytool -export -alias myAlias -keystore C:\Users\<your user name>\.android\myKeyStore | C:\openssl-0.9.8k_WIN32\bin\openssl sha1 -binary | C:\openssl-0.9.8k_WIN32\bin\openssl enc -a -e
To get Certificate fingerprint(MD5) code follow these steps
jarsigner.exe
filecd C:\Program Files\Java\jdk1.6.0_26\bin
keytool -list -keystore "C:/Documents and Settings/<your user name>/.android/debug.keystore"
android
" type and enterAndroid: where to run keytool command in android
Keytool command can be run at your dos command prompt, if JRE has been set in your classpath variable.
For example, if you want to get the MD5 Fingerprint of the SDK Debug Certificate for android,
just run the following command...
where
C:\Documents and Settings\user\.android>
is the path which contains thedebug.keystore
that has to be certified.For detailed information, please visit http://code.google.com/android/add-ons/google-apis/mapkey.html#getdebugfingerprint
KEYTOOL is in JAVAC SDK .So you must find it in inside the directory that contaijns javac
keytool
comes with the JDK. If you are using cygwin then this is probably on your path already. Otherwise, you might dig around in your JDK's bin folder.You'll probably need to use cygwin anyways for the shell pipes (
|
) to work.keytool is part of jdk, it should be $JAVA_HOME/bin/keytool