Java程序与OS X山狮自签名证书 [英] Java applet with self-signed certificate on OS X Mountain Lion

查看:159
本文介绍了Java程序与OS X山狮自签名证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Java程序,需要有充分的信任运行。

We have a Java applet that needs to run with full trust.

在开发并在pre释放测试中,我们使用的是自签名证书签名(量产版与真正的code签字证明文件签字)。

While developing and during pre-release tests we sign it using a self-signed certificate (the production version is signed with a real code signing certificte).

但是,当我们尝试启动在OS X 10.8的prerelases自签名的小程序,我们不能再选择允许它运行。 允许按钮上只是禁止:

But when we try to start the self-signed applet on the prerelases of OS X 10.8, we can no longer choose to allow it to run. The "Allow"-button is simply disabled:

如果我preSS显示详细信息...我可以选择始终信任证书,但是这并没有区别:

If I press "Show Details..." I can choose to "Always trust" the certificate, but this makes no difference:

它的工作原理与同一版本的Java JRE在OS X Lion的10.7,所以我怀疑它是与操作系统的问题,而不是JRE。

It works with the same version of the Java JRE on OS X Lion 10.7, so I suspect it is an issue with the OS and not the JRE.

是否有任何变通办法?

我想preFER不要使用真正的code签名证书来进行测试:一个真正的code签名证书签署意味着我公司声称,该小程序是安全的,应该是可信的。我们很难断言,之前我们已经测试过了。

I would prefer not to use a real code signing certificate for testing: signing with a real code signing certificate means that my company asserts that the applet is secure and should be trusted. We can hardly assert that before we have tested it.

推荐答案

这是Mac OS X中新的安全功能,默认情况下只从Mac商店和应用程式放大器;从信任的开发人员可以在那里运行。 Fortunatelly,很容易改变,你必须让这个在Mac OS X preferences。

It is new security feature in Mac OS X, by default only apps from Mac Store & from trusted developers are allowed to run there. Fortunatelly, it is easy to change, you have to allow this in Mac OS X preferences.

转到preferences - >安全性与;隐私和挂锁点击允许更改。

Go to Preferences -> Security & Privacy and click on padlock to allow changes.

然后在允许下载appications中选择任何地方。

Then in "Allow appications downloaded from" select "Anywhere".

此后,在Java的对话框中的按钮将被启用。

After that, the button in Java dialog will be enabled.

这篇关于Java程序与OS X山狮自签名证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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