注册的java小程序没有Java警告工作 [英] Sign java applet for work without java warnings

查看:195
本文介绍了注册的java小程序没有Java警告工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Vaadin应用和我的小程序集成在里面。当我每次开始我的web应用程序,我看到这个警告。

I have Vaadin application and my applet which integrated in it. When I start my web application every time i see this warning.

在转弯时的小程序开始启动。我推运行后单击Web应用程序按钮启动的applet打开新的警告。

In turns when applet begins to start. After I push run and click button on web application to start applet turns new warning.

我的老板告诉记者,这是荒谬的,以显示与该警告的Web应用程序。但我不知道我怎么都让我签字小程序关闭此警告。
现在我签我的小程序该指令。这将是很好,如果你能帮助我。

My boss told that it is ridiculous to show web app with that warnings. But i don't know how i have to sign my applet to turn off this warnings. Now i sign my applet with this instruction. It will be nice, if you will help me.

推荐答案

为了摆脱这种警告你将不得不签上你的小程序。

In order to get rid of this warning you're going to have to sign your applet.

默认情况下applet是一个沙盒中运行。这种沙箱隔离该applet preventing恶意$ C $从未经用户授予的权限运行温度。小程序被认为是不可信的,如果他们不使用安全证书签名。未签名的Applet被限制为只执行了一套安全的操作。不安全的小程序无法执行以下命令:

By default an Applet is running inside a sandbox. This sandbox isolates the applet preventing malicious code from running without the user's granted permissions. Applets are considered untrusted if they are not signed with a security certificate. Unsigned applets are limited to execute only a set of "safe" operations. Unsafe applets cannot execute the following:


  • 访问本地文件系统,可执行文件,系统剪贴板,
    和客户端的计算机上的打印机。

  • 连接到不到哪里托管服务器的其他任何服务器。

  • 加载机库。

  • 改变的SecurityManager。

  • 创建一个类加载器。

  • 阅读一些系统属性。

为了签下您的小程序,你需要从可信赖的来源购买RSA证书。您可以购买从证书颁发机构(CA)RSA证书,如VeriSign和Thawte。从CA获取证书,您需要提供证书签名请求(CSR)。步骤如下:

In order to sign your applet you'll need to purchase an RSA certificate from a trusted source. You can purchase for RSA certificates from a Certificate Authority (CA), such as VeriSign and Thawte. To obtain a certificate from a CA, you need to provide the certificate signing request (CSR). The steps are as follow:


  • 使用keytool生成一个RSA密钥对。

  • 使用keytool生成证书签名请求,然后将CSR提交给CA。

  • CA将通过电子邮件发送给您的证书回复(链)。

  • 导入链到密钥存储。

  • 使用的jarsigner签署applet的JAR文件。

一旦你拥有了一切你需要做的是签署证书的JAR,你应该是好去。签署JAR只是做到以下几点:

Once you have everything all you need to do is sign the JAR with your certificate and you should be good to go. To sign the JAR just do the following:

jarsigner -keystore <keystore_name> -storepass <store_pass> -keypass <key_pass> -signedjar <signed_jar_file_path> <original_jar_file_path> <alias_name>

这篇关于注册的java小程序没有Java警告工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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