开发者

How to generate MD5 fingerprint

开发者 https://www.devze.com 2023-04-09 09:25 出处:网络
hi i have to generate signing cartificate fingerprint so my first task is to generate keystore file using command.

hi i have to generate signing cartificate fingerprint so my first task is to generate keystore file using command.

C:\Program Files\Java\jdk1.7.0\bin>keytool -genkey -v -k开发者_如何学编程eystore myrelease.keystore -alias alias_name.

now i have to generate the finger prints(MD5) using this command:

C:\Program Files\Java\jdk1.7.0\bin>keytool -genkey -v -keystore helloworld7.keys tore -alias alias_name -validity 10000.

but its giving output in

Certificate fingerprint (SHA1):my finger print.

its giving finger print using SHA1 algorithm.can any one please tell what modification i have to do in my commands so that i can get MD5 finger prints


add -v after keytool and you will get all fingerprints


JDK1.6 by default generates MD5 fingerprint but jdk1.7 generates SHA1. But you can get MD5 fingerprint by using keytool -v -list -keystore your_key in the keytool commandAs you are using jdk1.7, so you can get MD5 finger print by placing -v -list in the command.
Example:

C:\Program Files\Java\jdk1.7.0\bin>keytool -v -list -keystore helloworld7.keystore


Being confronted with the same problem, I have found some posts on the site saying that this happens because of the jdk1.7, it generates SHA1 instead of MD5. I have uninstalled jdk1.7 and installed jdk1.6 and following the Abhi's link(jdk 1.6 is used there also) I was able to get a MD5 fingerprint. I registered it on http://code.google.com/android/maps-api-signup.html and I got an API Key.


Here is a link to another post on here with the exact same problem:

How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?

This solution actually works for JDK1.7. I tested it before I posted this.

0

精彩评论

暂无评论...
验证码 换一张
取 消