首页 > 解决方案 > 对等证书无法验证或对等证书无效自签名 SSL

问题描述

我的服务器 A 是启用了自签名 SSL 的 repo 服务器。现在我的服务器 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 证书在 此处输入链接描述

但我仍然收到错误消息。有没有人有任何解决方案。

标签: sslcentosyumself-signed

解决方案


推荐阅读