google maps api for android, getting SHA1 cert instead of MD5-ThrowExceptions

Exception or error:

when i try to get the MD5 fingerprint using keytool, I get a SHA1 fingerprint instead and the google maps doesnt recognize it. How do I get the MD5 fingerprint?

How to solve:

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).



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\\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


The easiest, full prove and permanent way to get MD5 or SHA1 or SHA256 is as follows_

  1. Update the PATH Environment Variable.
  2. Start Command prompt “Ctrl+R” & enter cmd in RunDailog panel then click ok.
  3. Navigate to the directory where your debug.keystore file resides e.g., C:\Users\Admin\.android path of my debug.keystore file.
  4. Run the following command

    C:\<PATH OF YOUR DEBUG.KEYSTORE FILE>>keytool -list -v -alias androiddebugkey -keystore debug.keystore -keypass android -storepass android

    C:\Users\>keytool -list -v -alias androiddebugkey -keystore debug.keystore -keypass android -storepass android


    Alias name: androiddebugkey
    Creation date: Sep 20, 2013
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Owner: CN=Android Debug, O=Android, C=US
    Issuer: CN=Android Debug, O=Android, C=US
    Serial number: 39ea2d1c
    Valid from: Fri Sep 20 10:55:39 IST 2013 until: Sun Sep 13 10:55:39 IST 2043
    Certificate fingerprints:

     MD5:  85:46:3B:8A:62:02:1D:DB:B6:BF:A1:9F:45:D4:54:C6
     SHA1: 69:AF:B5:D6:14:ED:0B:31:89:6B:BD:0F:CC:3C:4C:57:CE:4C:A1:BC
     SHA256: 57:7F:DE:25:31:38:4B:7F:4B:F1:96:CB:46:75:FC:34:85:E3:03:15:D3:

    Signature algorithm name: SHA256withRSA
    Version: 3

I hope this will help to everyone!


Try this one in cmd:

First go on this path : C:\Program Files\Java\jdk1.6.0_33\bin


Type this command..

C:\Program Files\Java\jdk1.6.0_33\bin > keytool.exe -list -alias androiddebugkey -keystore c:\Users\\debug.keystore -keypass android -storepass android

The blow code will work!
try this to get md5 key

C:\Program Files\Java\jdk1.6.0_23\bin>keytool.exe -list -alias androiddebugkey –
keystore “c:\Users\\debug.keystore” -storepass android -ke
ypass android

instead of path & users administrator give your own


just export your app in eclipse and the MD5 + SHA1 will be displayed in the window. (just before “finish”)

Leave a Reply

Your email address will not be published. Required fields are marked *