在Chrome中使用自签名小程序时出现阻止异常

时间:2015-03-12 00:26:10

标签: applet certificate sign

我有一个applet jar,我使用我创建和存储的密钥签名:

keytool.exe -genkey -keyalg rsa -alias myKey

然后我使用以下方式生成证书:

keytool.exe -export -alias myKey -file myCertificate.crt

最后我使用以下方式签署了我的applet jar:

jarsigner.exe myJar.jar myKey

我认为签名进展顺利,因为我只收到以下消息:

Warning:
The signer certificate will expire within six months.

但是当我尝试使用简单的html在Chrome中运行applet时,我的java控制台会显示以下消息:

...
security: Trust in: *myJar.jar* expired: Wed Dec 31 19:00:00 COT 1969
...
basic: your security settings have blocked a self-signed application from running
ExitException[ 0]com.sun.deploy.security.BlockedException: your security settings have blocked a self-signed application from running
at com.sun.javaws.security.JNLPSignedResourcesHelper.performSecurityCheckForSandbox(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

为什么证书应该过期?或者可能是什么问题?有什么想法吗?

注意:我还将我的网站添加到Java控制面板的“安全”选项卡中的Java网站列表

0 个答案:

没有答案