Google Maps API for Android, getting SHA1 cert instead of MD5

When I try to get the MD5 fingerprint using keytool, I get a SHA1 fingerprint instead and the Google Maps doesn't recognize it. How do I get the MD5 fingerprint?


Solution 1:

Use JDK version 1.6 instead of 1.7 because 1.7 generates the fingerprint with SHA1 by default. or you can use (-v) option of the keytool to give you all supported algorithms output and you will find the MD5 in it. for examble : keytool -v -list -keystore [your keystore path] and then enter the password which is [android] by default (you can get the keystore path from Eclipse window>Prefs>Android>build).

Sincerely, DigitalFox

Solution 2:

C:\Program Files\Java\jdk1.7.0_04\bin>keytool.exe -V -list -alias androiddebugkey -keystore "C:\Documents and Settings\IBM\.android\debug.keystore" -storepass android -keypass android

Consider your jdk-bin path in the first path place and your home user directory in the second path. For windows 7 it is like "C:\Users\username.android\debug.keystore"

Use the above command you will get all the keys.

for more details go through this androidgoogle-maps-api-key-signup-md5-certification-key