通过keytool获取私钥进行应用发布

发布于 2024-10-04 06:30:05 字数 310 浏览 0 评论 0原文

我无法在网上找到一个教程来逐步介绍如何使用 JDK 中的 keytool 生成合适的密钥。

这个:

http://developer.android.com/guide/publishing/app-signing .html

讨论了它并提供了命令,但它实际上并没有说明在何处以及在哪个文件夹中键入命令。我确信我在这里错过了一些简单的东西,但是有人可以指导我从哪里开始吗?

I can't find a tutorial online that gives me the step by step process on how to generate a suitable key using the keytool in the JDK.

This:

http://developer.android.com/guide/publishing/app-signing.html

talks about it and gives commands, but it doesn't actually say where and in what folder to key in the commands. I am sure I am missing something easy here, but could anyone guide me to where I need to start with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟花易冷人易散 2024-10-11 06:30:05

在命令提示符下运行所有​​这些命令。我假设你正在使用 Windows 机器进行开发。

开始-->运行--> cmd

类型:java -version

您应该得到一个返回的版本号,如“Java v1.62”或类似的版本号,或者一个错误“未找到”

如果您得到下一行返回的版本,那么您可以从提示符运行 keytool 命令您当前处于开启状态。

如果出现“未找到”错误,则 cd/ 进入找到 keytool 命令的 jdk 文件夹。从此处找到的提示符运行命令。

我强烈推荐使用eclipse来开发。作为导出和签署应用程序的一部分,Eclipse 将从 GUI 创建一个新的密钥库。真正简单又容易。

Run all of these commands in a command prompt. I am assuming you are using a windows machine to develop with.

Start --> Run --> cmd

type: java -version

You should either get a version number returned like "Java v1.62" or similar or an error "not found"

If you get the version returned on the next line then you can run the keytool command from the prompt you are currently on.

If you get a "not found" error then cd/ into the jdk folder where the keytool command is found. Run the commands from the prompt found here.

I really reccommend using eclipse to develop. Eclipse, as part of exporting and signing your app, will create a new keystore from a GUI. Real simple and easy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文