0

私は自分自身を作成Keystoreし​​、取得するためにMD5 Certification Fingerprint Key、次のコマンドを書いています。

C:\Users\XX\.android>keytool -list -alias mykey -keystore mykey.keystore

そしてそれは戻ってきます

mykey, 16 Jul, 2012, PrivateKeyEntry,
Certificate fingerprint (SHA1): 40:6A:97:77:FE:25:55:25:03:D2:8E:93:FD:74:21:A7:52:XX:YY:ZZ

GoogleMap Apiこれを使用してキーを 取得しようとすると、次のように表示されるため、MD5 キーを探していました。

    The fingerprint that you entered is not valid.

を手に入れるのを手伝ってくださいMD5 key。また、可能であれば、これら 2 つのタイプのキーの違いを簡単に説明してください

ありがとう。

4

3 に答える 3

4

keytool の後に -v を追加するだけです

C:\Program Files\Java\jdk1.7.0\bin>keytool -v -list -alias
androiddebugkey -keystore debug.keystore -storepass android -keypass android
于 2012-07-16T12:47:15.473 に答える
1
Open the command prompt and follow the steps

D:\android-sdk-windows-1.6_r1\tools>keytool -genkey -v -keystore projectkey.keystore -alias aliasname -keyalg RSA -keysize 2048 -validity 15000
Enter keystore password: ------------
What is your first and last name?
[Unknown]: ------------
What is the name of your organizational unit?
[Unknown]: ------------
What is the name of your organization?
[Unknown]: ------------
What is the name of your City or Locality?
[Unknown]: ------------
What is the name of your State or Province?
[Unknown]: ------------
What is the two-letter country code for this unit?
[Unknown]: ------------

D:\android-sdk-windows-1.6_r1\tools>keytool -v -list -alias aliasname -keystore projectkey.keystore
Enter keystore password:
aliasname, Dec 7, 2010, PrivateKeyEntry,
Certificate fingerprint (MD5): CA:CF:AA:0E:5A:2B:88:C8:64:F1:FA:F7:29:21:50:FF
于 2012-07-16T12:47:04.890 に答える
0
I thinks the query is not correct ,

C:\Users\XX.android>keytool -list -alias mykey -keystore mykey.keystore

because for a md5 key you first go to jdk bin 

C:\Program Files\Java\jdk1.6.0_21\bin> 

then run the following command  
keytool -list -alias the_alias_name_of_keystore -keystore
keystore_with_full_path  like

C:\Program Files\Java\jdk1.6.0_21\bin>keytool -list -alias map -keystore
D:\SampleMap

and  it gives you output like

Enter keystore password:
SampleMap, Apr 6, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 4F:63:53:33:33:5A:79:F6:53:C2:33:E6:E7:A6:8F:C9
于 2012-07-16T13:33:48.170 に答える