yum 装包时,提示 [Errno 14] Peer cert cannot be verified or peer cert invalid
# cat /etc/yum.repos.d/my-repo.repo
###################################
[my-repo]
name=repo name
baseurl=https://xx.xx.xx.xx
enabled=1
gpgcheck=1
gpgkey=https:///path/to/gpgkey
######################################
原因:yum server 的ca证书不被认可
解决方案:Adding “sslverify=false” in the ‘/etc/yum.conf’ file。
参考
How to import self signed certificate in redhat
https://stackoverflow.com/questions/22509271/import-self-signed-certificate-in-redhat
How to install yum repository key with ansible?
https://stackoverflow.com/questions/38327406/how-to-install-yum-repository-key-with-ansible?r=SearchResults&s=6|33.3947
Peer cert cannot be verified or peer cert invalid self signed SSL
https://stackoverflow.com/questions/52604849/peer-cert-cannot-be-verified-or-peer-cert-invalid-self-signed-ssl