我怎样才能从Java的密钥工具,不仅SHA-1的MD5指纹? [英] How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?
问题描述
至于我想使用谷歌地图在我的应用程序,我需要调试证书MD5指纹。我尝试以下:
As I want to use Google maps in my application, I need the debug certificates' MD5 fingerprint. I tried following.:
(在这里,我复制从C debug.keystore文件:\ Documents和Settings \ Administrator.android在bin文件夹中)
(Here I copied the debug.keystore file from C:\Documents and Settings\Administrator.android in bin folder)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
但得到的结果如下:
But got the following results:
androiddebugkey, May 27, 2011, PrivateKeyEntry,Certificate fingerprint (SHA1): "some code"
但不工作,以获取地图API密钥。是SHA1是一样的MD5?
However that is not working to get MAP API key. Is SHA1 is same as MD5?
我应该怎么做,以获得MD5证书?
What should I do to get the MD5 certificate?
推荐答案
使用JDK 1.7,keytool中始终默认SHA1指纹,而不是MD5输出。 您可以通过添加-v选项得到的MD5证书。
With JDK 1.7 installed, keytool always outputs by default SHA1 fingerprint, not MD5. you can get the MD5 Certificate by adding -v option.
使用下面的code: -
use the following code:-
C:\Program Files\Java\jdk1.7.0\bin>keytool -v -list -alias
androiddebugkey -keystore debug.keystore -storepass android -keypass android
将输出MD5认证为好。
it will output MD5 certificate as well.
这篇关于我怎样才能从Java的密钥工具,不仅SHA-1的MD5指纹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!