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

℡╲_俬逩灬. 提交于 2019-12-12 06:37:16

问题


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). This has worked well on OS X, Windows and Linux. Now with OS X 10.8 (Mountain Lion) I have this issue: OS X 10.8 Gatekeeper and Java applets

It seams like OS X 10.8 require a signed applet to be signed with an Apple Developer ID Certificate.

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? 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?


回答1:


The answer to this question has now been posted in the linked question above: OS X 10.8 Gatekeeper and Java applets

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. The applet gets signed but jarsigner can't verify the signature.

So the ways to get rid of this bad warning message is that the user of the signed Applet does one of the following:

  1. Changes his GateKeeper settings to allow applications "from anywhere".
  2. Upgrades to Java 7 which is developed by Oracle and works as Java has done previously on OS X, i.e. a certificate from Thwate is enough.
  3. Adds the Thwate certificate to his keychain.


来源:https://stackoverflow.com/questions/12088680/sign-java-applet-so-that-it-works-on-os-x-10-8-mountain-lion-and-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!