I need to get a Google map key for my application and, for this, I need the MD5 signature of my certificate. As seen on the Internet, I use "keytool" to get it :
keytool -list -alias mykey -keystore mykeystore
The problem is that the answer is a SHA1 signature instead of an MD5 signature.
I use JDK 1.7.
What am I doing wrong?
Thanks in advance for the time you will spend trying to help me.
There is another Post about this same thing How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?
I guess JDK 1.7 defaults to SHA1. To fix this the following has worked:
C:\Program Files\Java\jdk1.7.0\bin>keytool -v -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
I tried this, and it worked for me. It gives you MD%, SHA1, SHA256 and Signature Algorithm Name. In that order.
keytool -exportcert -alias alias -keypass keypass -keystore ./test.keystore -storepass 123456 | md5sum
Have you tried the keytool command as:
$ keytool -list -keystore ~/.android/debug.keystore
More on getting Map API Key is Here: http://code.google.com/android/maps-api-signup.html
As you are using JDK 1.7, there is a new command line argument to its keytool, namely -keyalg.
I know you can specify -keyalg RSA, so maybe -keyalg MD5 will give you the right key.