Apps and Freedom

By Terry Pearson

Returning MD5 instead of SHA1 from JDK 1.7 Keytool

without comments

Google MapsIf you are working with Android development, you know that you will need a debug MD5 key in order to request a Google Maps API Key.

Most tutorials say to go to C:\users\username\.Android\ and type:

keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

Unfortunately, as of Java 7,  the keytool format has changed a bit. In order to see the md5 hash that is required for Google Maps API, you must add a -v flag. The entire command now looks something like this:

keytool -v -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

The new keytool will give you MD5, SHA1, and SHA256 all at once. Enjoy the bonus hashes and your Google working Google Maps API key.

Written by Terry Pearson

June 5th, 2012 at 10:15 pm

Leave a Reply


Creative Commons License
Terry Pearson - The Blog by Terry Pearson
is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.