Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keytool generates SHA1 fingerprint instead of MD5?

I want to use Google Maps in my application, I have followed this tutorial to generate MD5 fingerprint of my eventappkey.keystore. But keytool generates SHA1 fingerprint instead of MD5, due to which I am unable to register for Google Api as google accepts MD5 fingerprint of keystore.

Command line snapshop (Window 7)

I have looked at other answers which suggest to use jdk1.6. But is there a better way so that I do not need to move to jdk1.6. Any suggestion would be greatly appreciated.

like image 929
Muhammad Nabeel Arif Avatar asked Mar 11 '12 10:03

Muhammad Nabeel Arif


People also ask

How can I get SHA1 fingerprint from keystore?

So, to get the SHA1 value from a production Keystore go to: Android Tools -> Export Signed Application Package . Follow the process for signing your apk and the SHA1 will showed as a certificate. Save this answer.

How do I get a SHA-1 certificate fingerprint?

Open a terminal and run the keytool the utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints.

What is SHA1 fingerprint certificate?

This article at Wikipedia explains what a SHA1 Fingerprint is. In a nutshell it is a unique way to identify the connection that is being made to avoid any sort of possible incorrect connection, or additional security to ensure the connection is being made to the expected server.


2 Answers

If you add the -v (verbose) option to your command line, like

keytool -v -list -alias alias_name -keystore my-release-key.keystore

it should show you the MD5 fingerprint

like image 153
NickT Avatar answered Oct 02 '22 17:10

NickT


If use android studio then use this method :

enter image description here

like image 37
Ahmad Aghazadeh Avatar answered Oct 02 '22 17:10

Ahmad Aghazadeh