当使用“从从属计算机上的浏览器启动代理”选项从从属计算机启动从属代理时,它会失败。它会打开一个 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 服务的从属服务,而不是通过命令提示符运行。我怎样才能做到这一点?
将 Jenkins 从站安装为服务后,转到从站上配置的“远程根目录”,打开jenkins-slave.xml
在文本编辑器中添加文件-noCertificateCheck
到最后<arguments>
标记,然后重新启动服务。这应该消除证书异常。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)