我怎么能在我的签名的jar文件中设置的发布者名称,使用自签名的证书? [英] How can I set the publisher name in my signed jar file, using a self-signed certificate?
问题描述
我已经编译我的小程序,创建了一个jar文件,产生了keytool密钥库数据库与jarsigner签订的罐子,并与密钥工具导出的公钥证书。
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.
问题是它说:出版商:UNKNOWN在箱子里。反正我有可以设置为我的别名,因为我codeD小程序?
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屋!