12

使用“从从属计算机上的浏览器启动代理”选项从从属计算机启动从属代理时,它会失败。它为 slave-agent.jnlp 打开一个窗口,当使用 Java Web Start Launcher 打开时,它显示正在启动的应用程序弹出窗口,然后另一个弹出窗口带有“验证证书失败”消息。

错误详细信息是:

java.security.cert.CertificateException:
java.security.cert.CertPathValidatorException:
java.security.InvalidKeyException: Wrong key usage
    at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
    at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.security.cert.CertPathValidatorException:
 java.security.InvalidKeyException: Wrong key usage
    at sun.security.provider.certpath.OCSPResponse.verifyResponse(Unknown Source)
    at sun.security.provider.certpath.OCSPResponse.<init>(Unknown Source)
    at sun.security.provider.certpath.OCSP.check(Unknown Source)
    at sun.security.provider.certpath.OCSP.check(Unknown Source)
    at com.sun.deploy.security.TrustDecider.doOCSPEEValidation(Unknown Source)
    ... 13 more
Caused by: java.security.InvalidKeyException: Wrong key usage
    at java.security.Signature.initVerify(Unknown Source)
    ... 18 more

而当我运行“如果从属无头:”选项时,它会打开一个命令提示符并显示连接到主控的消息。从站也在线显示在仪表板上。

主机在我的本地机器上,我通过 VPN 连接到远程机器(Windows XP)。我想将此遥控器用作 Windows 服务的从属设备,而不是通过命令提示符运行。我怎样才能做到这一点?

4

2 回答 2

26

将 Jenkins 从站安装为服务后,转到从站上配置的“远程根目录”,jenkins-slave.xml在文本编辑器中打开文件,添加-noCertificateCheck<arguments>标签末尾,然后重新启动服务。那应该摆脱证书异常。

于 2014-11-06T14:46:19.833 回答
0

首先,从控制面板中选择“Java”。选择“高级”选项卡。扩展“安全”。确保未选中 “启用在线证书验证”“仅为发布者证书启用在线证书验证” 。

然后运行 ​​JNLP 文件。如果 Jenkins 根目录不存在,则需要创建它。

最后,按照@sschuberth 的回答。

于 2014-12-08T03:53:58.200 回答