如何让机器信任自签名的 Java 应用程序
我正在使用 JAWS 部署一个应用程序,它一直工作到 2013 年底我收到警告,然后今天早上Java完全阻止了它.法语消息是:
I'm deploying an application using JAWS, and it worked until late 2013 when I got a warning, and then this morning Java completely blocked it. The message in French is:
Application bloquée par les paramètres de sécurité
Vos paramètres de sécurité ont bloqué l'exécution d'une application auto-signée avec une version obsolete ou Arrivéeà expire de Java.
大致可以翻译为:
应用程序被安全设置阻止
您的安全设置已阻止运行使用过时或过时的 Java 自签名的应用程序.
语法不是很清楚,句尾可以读成:
The grammar is not that clear, the end of the sentence could be read as either:
- ...阻止自签名应用程序使用过时或过时的 Java [运行时],这意味着本地运行时太旧,但自签名很好
- ...阻止了一个使用过时或过时的 Java [编译器]自签名的应用程序,这意味着使用的 Java 编译器太旧了
- ...blocked a self-signed application from running with an obsolete or outdated Java [runtime], meaning that the local runtime is too old, but the self-signature is fine
- ...blocked an application that has been self-signed with an obsolete or outdated Java [compiler], meaning that the Java compiler used is too old
我在网上搜索了完全相同的英文消息,但找不到.所以语法还不清楚.请注意,消息中没有 Name: xyz/From: http://url/
,只有我在上面输入的文本和一个蓝色的i"图标.
I searched online for the exact same message in English, but I couldn't find it. So the grammar is still unclear. Note that on the message there is no Name: xyz / From: http://url/
, there's only the text I typed above, and a blue "i" icon.
现在,我并不真正理解此错误消息的确切含义,但我知道存在问题,因为我的 JAR 文件都是自签名的.我已经在其他 Windows 客户端上遇到过这种情况,这很容易:
Now, I don't really understand the exact meaning of this error message, but I know that there is an issue because my JAR files are all self-signed. I have already faced this on other Windows clients, and it was easy:
- 我从我的密钥库中提取了一个
.cer
证书; - 在客户端机器上下载,打开;
- 让客户将其作为受信任的来源安装在他们的本地计算机上.
它对我的测试设置和一个客户来说就像一个魅力,但另一个客户仍然有问题并且无法运行我的软件.
It worked like a charm on my test setup and for one customer, but another one still has the issue and cannot run my software.
这是我的一个大问题,我不知道该怎么办.我是否应该升级我的 Java 编译器、重新编译所有内容、再次签署每个 JAR 文件并交叉手指?如何让 Windows 机器信任我的证书并让 Java 应用程序运行?
This is a big issue from me, and I don't know what to do. Should I upgrade my Java compiler, recompile everything, sign every JAR file again and cross fingers? How can I make that Windows box trust my certificate and let the Java application run?
推荐答案
只需转到 *开始菜单 >>Java >>配置 Java >> 安全性 >> 编辑站点列表 >> 复制并粘贴有问题的链接 >> 确定问题已解决:)*
Just Go To *Startmenu >>Java >>Configure Java >> Security >> Edit site list >> copy and paste your Link with problem >> OK Problem fixed :)*
相关文章