密钥工具的别名不存在 [英] Keytool alias does not exist

查看:1831
本文介绍了密钥工具的别名不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的 debug.keystore MD5密钥,所以我可以得到API密钥的谷歌地图。

I am trying to get my debug.keystore md5 key so I can get the API key for Google Maps.

我运行命令:

 keytool –genkeypair -alias armand -keypass pass

,然后运行命令:

And then running the command:

keytool -list -alias armand -keystore debug.keystore

我然后输入我的密码,它给了我下面的错误:

I then enter my password and it gives me the following error:

keytool error: java.lang.Exception: Alias <armand> does not exist

我是什么做错了吗?

What am I doing wrong?

推荐答案

这是正确的方式来获得关键的:

要获得证书指纹(MD5),请按照以下步骤:

To get certificate fingerprint (MD5) follow the steps below:

您需要获得密钥库文件获取的证书指纹(MD5)。 密钥存储文件可在以下路径找到:

You need to get the keystore file for getting the certificate fingerprint (MD5). Your keystore file can be found at the following path:

C:\Documents and Settings\<username>\Local Settings\Application Data\Android

(OR)

C:\Documents and Settings\<username>\.android

密钥库文件名是 debug.keystore 。 在debug.keystore文件复制到其他文件夹(例如: - D:\ Androidkeystore \)(这是用户友好的使用)。 打开命令提示符,然后转到Java安装目录。 (C:\ Program Files文件\的Java \\斌) 然后键入以下行(中给出)和preSS进入。

Keystore file name is debug.keystore. Copy the "debug.keystore" file to some other folder (ex: - "D:\Androidkeystore\") (it's user friendly to use). Open command Prompt and go to the Java installed directory. ("C:\Program Files\Java\\bin") Then type the below line (given in box) and press enter.

keytool.exe -list -alias androiddebugkey -keystore "D:\AndroidKeystore\debug.keystore" -storepass android -keypass android

下面的MD5证书指纹

64:88:A2:FC:AA:9F:B1:B0:CA:E4:D0:24:A8:1E:77:FB

这是工作,但我在这里得到的小错误:

This is working, but I am getting small error here:

这是我的路径C:\机器人\的Java \ jdk1.6.0 \ BIN> keytool.exe的-list -alias androiddebugkey -keystoreC:\机器人\ debugkey \ debug.keystore-storepass安卓-keypass机器人

this is my path-C:\ANDROID\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore"C:\ANDROID\debugkey\debug.keystore"-storepass android -keypass android

keytool error: java.lang.RuntimeException: Usage error, android is not a 
legal command

这篇关于密钥工具的别名不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆