如何使用自签名证书在我签名的 jar 文件中设置发布者名称? [英] How can I set the publisher name in my signed jar file, using a self-signed certificate?

查看:28
本文介绍了如何使用自签名证书在我签名的 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?

推荐答案

一个自签名"证书不值得写它的位.如果你能制作一份证明是你的证明,我也可以轻松伪造.

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.

这就是 JRE 将发布者列为未知"的原因.他们声称是谁并不重要,除非证书已由受信任的机构验证,否则它会被忽略.

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.

这篇关于如何使用自签名证书在我签名的 jar 文件中设置发布者名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆