签署 java 小程序,以便它在 OS X 10.8 Mountain Lion 和 Windows 上运行 [英] Sign java applet so that it works on OS X 10.8 Mountain Lion and Windows

查看:36
本文介绍了签署 java 小程序,以便它在 OS X 10.8 Mountain Lion 和 Windows 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个 Java 小程序,它需要脱离沙箱,因此它由来自受信任的 CA (Thwate) 的证书签名.这在 OS X、Windows 和 Linux 上运行良好.现在使用 OS X 10.8 (Mountain Lion) 我有这个问题:OS X 10.8 Gatekeeper 和 Java 小程序

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

它与 OS X 10.8 类似,需要使用 Apple Developer ID 证书对已签名的小程序进行签名.

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

我的问题是:如果我更改以便小程序由 Apple Developer ID 证书签名,这是否也适用于 windows/linux 等?如果没有,我怎么能有一个签名的小程序,它的签名在所有主要操作系统上都可以很好地验证?我可以用两个证书签署小程序吗?

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?

推荐答案

此问题的答案现已发布在上面的链接问题中:OS X 10.8 Gatekeeper 和 Java 小程序

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

基本上解决不了.我尝试将开发人员 ID 应用程序证书导出为 .p12 证书,并尝试使用 Thwate 的证书之外的证书对小程序进行签名,因为它允许使用多个身份对 jar/小程序进行签名.小程序已签名,但 jarsigner 无法验证签名.

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.

因此,消除此错误警告消息的方法是签名 Applet 的用户执行以下操作之一:

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. 更改他的 GateKeeper 设置以允许来自任何地方"的应用程序.
  2. 升级到由 Oracle 开发的 Java 7,其工作方式与 Java 之前在 OS X 上所做的一样,即 Thwate 的证书就足够了.
  3. 将 Thwate 证书添加到他的钥匙串中.

这篇关于签署 java 小程序,以便它在 OS X 10.8 Mountain Lion 和 Windows 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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