代码签名,我需要生成密钥库吗?

发布于 2024-10-05 15:24:08 字数 111 浏览 0 评论 0原文

我正在尝试使用 keytool 签署应用程序,但我没有密钥库文件。

我需要自己生成此文件还是应该从代码签名机构接收该文件? 如果是这样,我需要哪些文件来生成密钥库文件?

谢谢

I am trying sign an app using keytool, but I dont have a keystore file.

Do I need to generate this file myself or should I receive it from from code signing authority ?
If so what files do I require to generate a keystore file ?

Thanks

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

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

发布评论

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

评论(2

英雄似剑 2024-10-12 15:24:08

密钥存储是密钥的数据库。 “签名”应用程序(例如使用 jarsigner)的过程大致如下:

  1. 使用 keytool 创建私钥/公钥对。
  2. 然后,您创建一个 CSR(证书签名请求),
  3. CA(证书颁发机构)处理您的请求并为您提供证书。
  4. 您必须将 CA 响应导入到您的密钥库中。

您可以创建自签名证书来感受该过程。您可以使用 openssl。

The key store is a database for your keys. The process of "signing" an app (e.g. with jarsigner) is roughly the following:

  1. You create a private/public key pair with keytool.
  2. You then create a CSR (certificate signing request)
  3. A CA (certification authority) processes your request and gives you a certificate.
  4. You have to import the CA response into your keystore.

You may create self signed certificate to get a feeling of the process. You may use openssl.

心凉怎暖 2024-10-12 15:24:08

答案就在您的指尖... keytool 是您的朋友...

http://download.oracle.com/javase/1.3/docs/tooldocs/win32/keytool.html

密钥库创建

每当您使用 -genkey、-import 或 -identitydb 命令来创建密钥库时,都会创建密钥库。将数据添加到尚不存在的密钥库。
更具体地说,如果您在 -keystore 选项中指定尚不存在的密钥库,则将创建该密钥库。

如果不指定 -keystore 选项,则默认密钥库是主目录中名为 .keystore 的文件。如果该文件尚不存在,则会创建该文件。

You have the answer under your fingertips... keytool is your friend...

http://download.oracle.com/javase/1.3/docs/tooldocs/win32/keytool.html

Keystore Creation

A keystore is created whenever you use a -genkey, -import, or -identitydb command to add data to a keystore that doesn't yet exist.
More specifically, if you specify, in the -keystore option, a keystore that doesn't yet exist, that keystore will be created.

If you don't specify a -keystore option, the default keystore is a file named .keystore in your home directory. If that file does not yet exist, it will be created.

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