安装Jenkins报错 SSLHandshakeException

报错信息:

There were errors checking the update sites: SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

解决方法1:

网页端Manage Jenkins -> Manage Plugins -> Advanced  把url https改为http (此方法不能彻底解决问题, 需要看方法2)

解决方法2:

vim /etc/sysconfig/jenkins

JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dhudson.model.DownloadService.noSignatureCheck=true"

We are down, but not beaten. tested but not defeated.
原文地址:https://www.cnblogs.com/guniang/p/14963110.html