简体   繁体   English

是否可以免费签署一个Java小程序?

[英]Is it possible to sign a java applet for free?

I made a weird applet which allows you to paint with your voice. 我制作了一个奇怪的小程序,可以让你用你的声音画画。 Obviously it requires access to the microphone, but Java applets are not allowed access unless they are signed. 显然它需要访问麦克风,但Java applet不允许访问,除非它们已签名。 As far as I can tell its difficult and involves cryptography, and, though its not clear, I think that I'm expected to pay MONEY to Verisign as well. 据我所知,它很难并且涉及密码学,虽然不清楚,但我认为我也应该向Verisign支付金钱。 This all seems like a lot of paranoid innovation stifling bullsh** to me and I figure I'm not the first person to think so. 这一切看起来像很多偏执的创新扼杀了我的赌博,我想我不是第一个这么想的人。

Is there just some way to bypass this "for educational or testing purposes?" 有没有办法绕过这个“用于教育或测试目的?” or maybe turn off the security in my browser? 或者可能在我的浏览器中关闭安全性? or sign the applet for free? 或免费签署小程序?

I'm on Ubuntu 9.04 with Firefox 3.0.15 and Java 1.6.0 我使用的是Firefox 3.0.15和Java 1.6.0的Ubuntu 9.04

You may go one step further and setup your own CA with OpenSSL . 您可以更进一步,使用OpenSSL设置自己的CA.

This will allow you to create your own root certificate and generate any number of signing or SSL sertificates. 这将允许您创建自己的根证书并生成任意数量的签名或SSL证书。 You may then distribute your root certificate to your friends and ask them to install it in their respective browsers. 然后,您可以将根证书分发给您的朋友,并要求他们将其安装在各自的浏览器中。 After that the certificate chain for certificates create by your CA will always be valid and not self-signed ( many browsers look down on self-signed certs ). 之后,CA创建的证书证书链将始终有效,而不是自签名(许多浏览器都会查看自签名证书)。

If you are going to work with OpenSSL CA you may need pkeytool to import private key into java keystore file. 如果您要使用OpenSSL CA,则可能需要pkeytool将私钥导入java密钥库文件。

You can create a self-signed certificate using the Java keytool. 您可以使用Java keytool创建自签名证书。 It's sufficient for educational or testing purposes, but if you deploy code signed with it, people are unlikely to trust it. 它足以用于教育或测试目的,但如果部署使用它签名的代码,人们就不太可能信任它。

I think Thawte used to offer a free e-mail signing certificate that could also be used for signing code. 我认为Thawte曾经提供免费的电子邮件签名证书,该证书也可用于签署代码。 I'm not sure if that is still the case. 我不确定是否仍然如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM