简体   繁体   English

对Java Applet进行签名,使其可以在OS X 10.8 Mountain Lion和Windows上运行

[英]Sign java applet so that it works on OS X 10.8 Mountain Lion and Windows

I develop an Java Applet that needs to break out of the sandbox so it is signed by a certificate from a trusted CA (Thwate). 我开发了需要突破沙箱的Java Applet,因此它由来自受信任的CA(Thwate)的证书签名。 This has worked well on OS X, Windows and Linux. 这在OS X,Windows和Linux上运行良好。 Now with OS X 10.8 (Mountain Lion) I have this issue: OS X 10.8 Gatekeeper and Java applets 现在有了OS X 10.8(Mountain Lion),我遇到了这个问题: OS X 10.8 Gatekeeper和Java小程序

It seams like OS X 10.8 require a signed applet to be signed with an Apple Developer ID Certificate. 像OS X 10.8这样的接缝要求使用Apple Developer ID证书对签名的小程序进行签名。

My question is: If I change so that the applet is signed by a Apple Developer ID Certificate will this also work on windows/linux etc? 我的问题是:如果我更改以使Applet由Apple Developer ID证书签名,那么在Windows / Linux等操作系统上也可以使用吗? If not, how can I have a signed applet which signature validates fine on all major OS? 如果没有,我如何拥有一个签名的小程序,该签名的小程序可以在所有主要操作系统上正常运行? Can I sign the applet with two certificates? 我可以用两个证书在小程序上签名吗?

The answer to this question has now been posted in the linked question above: OS X 10.8 Gatekeeper and Java applets 这个问题的答案现在已经发布在上面的链接问题中: OS X 10.8 Gatekeeper和Java applet

Basically it can't be solved. 基本上是无法解决的。 I have tried to export the Developer ID Application certificate to a .p12 certificate and tried to sign the applet with that in addition to the certificate from Thwate since it is allowed to sign a jar/applet with more than one identity. 我试图将开发人员ID应用程序证书导出到.p12证书,并尝试用Thwate证书之外的证书对applet进行签名,因为它允许对具有多个身份的jar / applet进行签名。 The applet gets signed but jarsigner can't verify the signature. 小程序已签名,但jarsigner无法验证签名。

So the ways to get rid of this bad warning message is that the user of the signed Applet does one of the following: 因此,摆脱此不良警告消息的方法是,已签名的Applet的用户执行以下一项操作:

  1. Changes his GateKeeper settings to allow applications "from anywhere". 更改他的GateKeeper设置,以允许“从任何地方”应用程序。
  2. Upgrades to Java 7 which is developed by Oracle and works as Java has done previously on OS X, ie a certificate from Thwate is enough. 升级到由Oracle开发的Java 7,并且可以像Java在OS X上以前所做的那样进行升级,即获得Thwate的证书就足够了。
  3. Adds the Thwate certificate to his keychain. 将Thwate证书添加到他的钥匙串中。

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

相关问题 在OS X Mountain Lion上具有自签名证书的Java小程序 - Java applet with self-signed certificate on OS X Mountain Lion 如何在Mac OS X 10.8上的野生动物园中启用32位Java [Mountain Lion] - How to enable 32 bit Java in safari on Mac OS X 10.8 [Mountain Lion] OS X Mountain Lion Java版本 - OS X Mountain Lion Java version Mac OS X 10.8 Mountain Lion上安装了Oracle(Sun)的JDK / JRE在哪里? - Where is Oracle's (Sun's) JDK/JRE installed on Mac OS X 10.8 Mountain Lion? 如何在OS X Mountain Lion上安装Java 8运行时环境 - How to install Java 8 runtime environment on OS X Mountain Lion Mac OS X(Mountain Lion)-Eclipse应用程序使用Java 6 - Mac OS X (Mountain Lion) - Eclipse Application Uses Java 6 Java严重更新后,在OS X Mountain Lion上安装错误:INSTALL_PARSE_FAILED_NO_CERTIFICATES - Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES on OS X Mountain Lion after Java Critical Update FullScreen Swing组件无法在Mac OS X Mountain Lion上的Java 7上接收键盘输入 - FullScreen Swing Components Fail to Receive Keyboard Input on Java 7 on Mac OS X Mountain Lion 如何在OS X山狮中的启动板中添加一个图标,以启动Java .jar? - How do I add an icon to launchpad in os x mountain lion that will launch a java .jar? 无法在Mac OS X上卸载Java 7 JDK(Mountain Lion 10.8.4) - Can't Uninstall Java 7 JDK on Mac OS X (Mountain Lion 10.8.4)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM