如何使用自签名证书在签名的 jar 文件中设置发布者名称?
我编译了我的小程序,创建了一个 jar 文件,使用 keytool 生成了一个密钥库数据库,使用 jarsigner 签署了 jar,并使用 keytool 导出了公钥证书。
现在,当我在浏览器中运行我的小程序时,在提示我是否确定要运行它之后,它确实可以工作。
问题是框中显示“发布者:未知”。既然我编写了小程序,我是否可以将其设置为我的别名?
I've compiled my applet, created a jar file, generated a keystore db with keytool, signed the jar with jarsigner, and exported the public key cert with keytool.
Now when I run my applet in the browser it does work, after prompting me if I'm sure I want it to run.
The problem is it says "Publisher: UNKNOWN" in the box. Is there anyway I can set that to my alias, since I coded the applet?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“自签名”证书不值得其所写的位。如果你能制作一份声称是你的证书,我也可以轻松伪造一份。
这就是 JRE 将发布者列为“未知”的原因。无论他们声称是谁,除非证书已由受信任的机构验证,否则都会被忽略。
A 'self signed' certificate is not worth the bits it is written on. If you can make a certificate that claims it is you, I can just as easily forge one.
That is why the JRE lists the publisher as 'unknown'. It does not matter who they claim to be, it is ignored unless the certificate has been verified by a trusted authority.
确保您已使用以下步骤
Make sure you have used the following steps