As I want to use Google maps in my application, I need the debug certificates' MD5 fingerprint. I tried following.:
(Here I copied the debug.keystore file from C:\Documents and Settings\Administrator.android in bin folder)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
But got the following results:
androiddebugkey, May 27, 2011, PrivateKeyEntry,Certificate fingerprint (SHA1): "some code"
However that is not working to get MAP API key. Is SHA1 is same as MD5?
What should I do to get the MD5 certificate?
add
-v
right after
keytool
and before-list
To get MD5 value and SHA1...etc fallow this below:
Before this dont forget to copy the debug.keystore to a folder Androidkeystore like that created in C drive.
it asks here.. Enter keystore password: android
enter you got here MD5 & SHA1..etc
NOTE: if there are any spaces in the directory path you MUST enclose it in quotes. e.g. use this format:
-keystore "C:\Users\Your Name\.android\debug.keystore"
It's not true that JDK 1.7 keytool ALWAYS return SHA1 fingerprint. Look there to solve the problem instead of downgrade your JDK: http://code.google.com/p/android/issues/detail?id=19035#makechanges
Simply export your project using your keystore in eclipse and in the last step you will get both SHA-1 and MD-5..
Look at this question for more details.
With JDK 1.7 installed, keytool always outputs by default SHA1 fingerprint, not MD5. you can get the MD5 Certificate by adding -v option.
use the following code:-
it will output MD5 certificate as well.
The -v flag gives the SHA1 certification as well. Without that flag you only get the MD5 fingerprint.