最近,Jenkins服务器(Linux)和IIS服务器(windows)的证书都过期了,我们已经为Jenkins和远程从服务器导入了新的证书。
当我们通过浏览器启动时,它可以连接(但弹出java - (The certificate is not valid and cannot be used to verify the identity of this website)
,如果我们将Jenkins作为服务安装在windows机器上,它处于启动状态(不是运行状态),并且无法在日志中将Jenkins作为从属启动,我可以看到以下错误:
"Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
发布于 2019-03-11 12:24:02
您的证书不正确。确保您导入的证书上的CN和hostname的值与旧证书相同。确保已导入/信任中间证书和根证书,因为这些证书可能已随新证书而更改。
Windows: certlm检查中间证书和根证书是否也受信任。
https://stackoverflow.com/questions/54919277
复制相似问题