丢失密钥库别名,但具有用于别名的文件和密码 [英] Lost keystore alias but have file and password used for alias
问题描述
最近,我为我的密钥库添加了一个新的别名来签名我的应用程序。
recently I added a new alias to my keystore to sign my app.
现在我用别名丢失了新生成的文件,但记住密码和别名名称并具有较旧的副本文件。有没有一种方法可以使用这些东西来重新创建别名?
Now I lost the new generated file with the alias, but remember the password and the alias name and have an older copy the file. Is there a way to recreate the alias using this things?
推荐答案
您可以使用以下命令列出keystore的内容:
You can list the contents of your keystore with the command:
keytool -list -keystore <name of keystore file>
为此,您需要提供密钥库密码(不是别名密码)。这会告诉你文件中的别名,它们是独立的,允许你签名。如果您愿意,也可以使用其他选项/工具提取密钥。
To do this, you will need to provide the keystore password (not the alias password). This will tell you the aliases in the file, which are self-contained, allowing you to sign. If you wish, you could also extract keys using other options / tools.
这篇关于丢失密钥库别名,但具有用于别名的文件和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!