我成功地使用最新的官方映像https://hub.docker.com/r/jenkins/jenkins安装了Jenkins,并向jenkins和jdk的仙人掌添加了https://repo.jenkins-ci.org、https://updates.jenkins-ci.org/、https://updates.jenkins.io/、https://www.jenkins.io/ SSL证书,并提供了JAVA_OPTS的仙人掌路径,但我仍然得到以下异常
hudson.PluginManager#doCheckUpdatesServer:为1次尝试检查更新站点时出错。最后一个例外是: PKIX路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException:无法找到被请求目标的有效证书路径。
下面是我的撰写文件
version: '3.7'
services:
jenkins:
image: jenkins/jenkins:lts-jdk11
privileged: true
user: root
environment:
JAVA_OPTS: -Djavax.net.ssl.trustStore=/var/jenkins_home/keystore/cacerts -Dhudson.model.UpdateCenter.pluginDownloadReadTimeoutSeconds=120
ports:
- 8080:8080
- 50000:50000
volumes:
- jenkins_home:/var/jenkins_home
volumes:
jenkins_home:添加到仙人掌中的证书
root@**************:/# keytool -list -v -keystore $JENKINS_HOME/keystore/cacerts | grep jenkins
Enter keystore password: **************
Alias name: https://repo.jenkins-ci.org
Owner: CN=repo.jenkins-ci.org
DNSName: repo.jenkins-ci.org
Alias name: https://updates.jenkins-ci.org/
Owner: CN=updates.jenkins-ci.org
DNSName: updates.jenkins-ci.org
Alias name: https://updates.jenkins.io/
Owner: CN=updates.jenkins.io
DNSName: updates.jenkins.io
Alias name: https://www.jenkins.io/
Owner: CN=jenkins.io
DNSName: jenkins.io
root@**************:/#我哪里出问题了?
发布于 2021-08-30 08:39:08
错误消息表明,TLS客户端无法在TLS握手过程中从服务器提供的X.509证书到信任存储中的任何X.509证书找到路径。要么你遗漏了一些东西,要么你没有使用你认为自己正在使用的信任库。您可以检查与-Djavax.net.debug=ssl,handshake一起使用的信任库。
https://stackoverflow.com/questions/68978950
复制相似问题