对于小程序的Java 51年7月1日上网限制 [英] Java 1.7.51 internet restrictions for applets

查看:153
本文介绍了对于小程序的Java 51年7月1日上网限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在previous个月,我开发了一个沙箱的Java小程序的学术项目。我是不是能够与可信认证机构签署它,因为预算限制的。
随着Java的51年7月1日发布,我发现新的安全限制,禁止因为缺少签名的小程序的执行。

In the previous months I developed a sandbox Java applet for an academic project. I wasn't able to sign it with a trusted Certificate Authority because of the restricted budget. With the release of Java 1.7.51 I found that the new security restrictions forbid the execution of the applet, because of the lack of signature.

到现在为止,我已经发现了两个毛坯解决此问题:

Until now, I have found two rough solutions to this problem:


  1. 要求用户包括他/她的例外列表的小程序的页面;

  2. 要求用户设置Java安全级别为中(这当然是一个危险的动作)。

有没有办法克服的Java使用自签名的applet施加的限制,而不要求用户更改安全设置?

Is there a way to overcome the restrictions imposed by Java with a self-signed applet without asking the user to change the security settings?

我要深深感谢你的答案,因为买了可信证书的选项仍然是昂贵的。

I would deeply thank you for your answers, since the option to buy a trusted certificate remains an expensive one.

推荐答案

它不是一个真正的解决方案,但对于终端用户也许有点更方便:
写一个小PROGRAMM(如jar文件,或批处理),这增加了你的站点的例外列表中。这个微小的PROGRAMM您提供到不能执行你的applet用户。它仅需要执行一次。如何可以做到这一点说明这里

Its not a real solution but maybe a bit more convenient for the enduser: Write a small programm (as jar file, or batch) which adds your site to the exception list. This tiny programm you offer to the user which can't execute your applet. It only has to be executed once. How this can be done is described here.

的文件控制异常站点列表被存储在用户的
  如在部署配置中描述的部署位置。上
  Windows 7中的位置
  C:\\ Users \\用户名\\ AppData \\ LocalLow \\太阳\\的Java \\部署\\安全\\ exception.sites。
  格式为每行一个站点。

The file controlling the Exception Site List is stored in the user’s deployment location as described in the deployment configuration. On Windows 7 the location is C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites. The format is one site per line.

如果你认为是不是真的值得信赖的你可能是正确的;-)谁执行从网上下载一个文件的用户?你也可以添加一个小说明您的页面,用户可以从命令行执行它。对于windows它想的是:

If you think that is not really trustworthy to the user you are probably right ;-) who executes a file downloaded from the internet? You can also just add a small description to your page and a user could execute it from commandline. For windows it would like that:

mkdir %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security
echo http://www.carlos.com >> %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites

我越读我的文章,我认为最好的解决办法是证书,但仍想分享这个选项。

The more I read my post I think the best solution is the certificate but still wanted to share this option.

这篇关于对于小程序的Java 51年7月1日上网限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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