ssl - 对等证书无法验证或对等证书无效自签名 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 证书在 此处输入链接描述
但我仍然收到错误消息。有没有人有任何解决方案。
解决方案
推荐阅读
- optimization - 通用“fminsearch”没有特定的子程序
- maven - 我可以将 Maven 本地存储库保留在另一台机器上并在我的项目中使用它吗?
- javascript - 吸嘴node.js;未捕获的 TypeError:回调不是函数
- windows - Windows 10 默认附带哪些编程语言(无需安装)?
- php - 使用 2 个不同类别的注册表类型
- c - 如何在 C 中正确使用 fscanf 函数?
- amazon-s3 - AWS S3 / EC2:使用文件保护程序下载文件给出CORS错误
- flutter - 如何使用 StreamBuilder 从 firestore 添加/获取数据
在颤抖? - javascript - javascript新手,为什么我的按钮不起作用?
- python-3.x - 如何在 Python3 中随机生成未观察到的数据