当我运行
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
它说使用--不检查-证书,因此我照做了。在安装的下一步,同时拍摄命令
rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
它抛出了以下错误。我不知道为什么SSL过期不是一个问题。
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
error: https://pkg.jenkins.io/redhat-stable/jenkins.io.key: import read failed(2).
2条答案
按热度按时间du7egjpx1#
请检查您的
ca-certificates
软件包。它很可能是由于更新和更新该软件包可以解决这个错误。它为我工作。ikfrs5lh2#
以下是我为解决此问题而采取的步骤:
更新或重新安装ca证书
您也可以从/etc/yum.repos.d中删除以前的jenkins repo,然后从头开始安装。