代码签名,我需要生成密钥库吗?
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
密钥存储是密钥的数据库。 “签名”应用程序(例如使用 jarsigner)的过程大致如下:
您可以创建自签名证书来感受该过程。您可以使用 openssl。
The key store is a database for your keys. The process of "signing" an app (e.g. with jarsigner) is roughly the following:
You may create self signed certificate to get a feeling of the process. You may use openssl.
答案就在您的指尖... 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.