无法验证对等证书或对等证书无效的自签名SSL

时间:2018-10-02 08:41:04

标签: ssl centos yum self-signed

我的服务器A是启用了自签名SSL的回购服务器。 现在,我的服务器B的yum.repolist.d文件已配置为服务器A(https)

[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://10.120.0.130/CentOS/6/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
sslverify=1

现在,当我运行yum repolist时,它会给我错误

# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
https://10.120.0.130/CentOS/6/os/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.

现在我不想sslverify = 0 / false。我想信任我根据以下链接所做的自签名SSL证书 enter link description here

但是我仍然遇到错误。有人有解决办法吗?

0 个答案:

没有答案