如何使用 Apple Developer ID 签署 Java 小程序 [英] How to sign Java applet with Apple Developer ID

查看:21
本文介绍了如何使用 Apple Developer ID 签署 Java 小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用 thwate 证书签名的 java 小程序,需要用 Apple Developer ID 签名.

I have java applet signed with thwate certificate and need to sign it with Apple Developer ID.

众所周知,Mac OS X 10.8 要求 Java 应用程序使用 Apple Developer ID 进行签名.它会导致运行 Java 小程序时出现一些问题,Gatekeeper 说无法验证数字签名".存在相同的问题 OS X 10.8 Gatekeeper 和 Java 小程序签署 java 小程序,使其在 OS X 10.8 Mountain Lion 和 Windows 上运行

As is well-known, Mac OS X 10.8 requires Java applications to be signed with Apple Developer ID. It causes some problems with running Java applets, Gatekeeper says that "The digital signature could not be verified". There are the same issues OS X 10.8 Gatekeeper and Java applets and Sign java applet so that it works on OS X 10.8 Mountain Lion and Windows

我也在 Oracle 的 Mac 常见问题解答中找到了这个:http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html#gatekeeper

I also found this in Oracle's Mac FAQ: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html#gatekeeper

因此,我请求并下载了 Apple Developer ID 证书到我的 Mac,但我找不到任何如何使用 Apple Developer ID 签署 Java 小程序的地方.

So, I requested and downloaded Apple Developer ID certificate to my Mac, but I cannot find any where how to sign java applets with Apple Developer ID.

我尝试了以下方法:

  1. 使用 codesign 工具在 Mac 上签署小程序.

  1. Sign the applet on Mac using codesign tool.

codesign -s "Developer ID Application: MyCompany" MyApplet.jar

但该命令实际上并未修改 jar 文件(未更改日期、文件大小或二进制内容).

But the jar file was not actually be modified by this command (no date, file size, or binary content was changed).

将 Apple 证书导出到 p12 并使用 jarsigner.我将 Apple Root CAApple Timestamp Certification AuthorityDeveloper ID Application: MyCompany 导出到 p12 并以通用方式对我的 jar 进行签名.

Export Apple certificate to p12 and use jarsigner. I exported Apple Root CA, Apple Timestamp Certification Authority, and Developer ID Application: MyCompany to p12 and sign my jar in a common way.

将我的 thawte 证书导入 Mac Keychain Access 并将 Apple 和 thawte 证书导出到 p12.

Import my thawte certificate to Mac Keychain Access and export both Apple and thawte certificates to p12.

这三种方式都没有给我什么.当我用小程序打开一个页面时,Gatekeeper 仍然说无法验证.

All three ways give me nothing. When I open a page with the applet, Gatekeeper still says that it could not be verified.

谁能向我提供有关如何签署我的小程序的分步说明?

Could anybody provide me with step by step instructions on how to sign my applet?

推荐答案

哦,没办法了 =( Java 小程序不能参与 Developer ID 计划.Apple 的答案在这里 https://stackoverflow.com/a/12210534/1068878.

Oh, there is no way to do it =( Java applets cannot participate in the Developer ID program. The Apple's answer is here https://stackoverflow.com/a/12210534/1068878.

这篇关于如何使用 Apple Developer ID 签署 Java 小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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