centos6 yum报错 [Errno 14] problem making ssl connection Trying other mirror

问题描述

[Errno 14] problem making ssl connection Trying other mirror.

这个问题类似于Centrify Yum repo fails with [Errno 14] problem making ssl connection。简单说就是ssl证书问题。

解决一:

#这点repo可以是你需要安装的别的repo。例如virtio-win.repo。更改对应的repo就行。
vim /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
将baseurl注释去掉,为mirrorlist加上注释。然后将enabeld=1变为0,禁用ssl证书验证。

然后安装下面两个东西:

yum install ca-certificates
yum update curl
然后再将enable设置为1即可

但是我更改完后,并没有解决。

解决二:

原因:

On RHEL based systems (6.7 or older) when the above error is seen, it is caused by support for TLS 1.0 and 1.1 being deprecated for SSL。
说人话,就是你系统的tls版本太低,ssl协议不支持了。

解决:

To force SSL to start using TLS v1.2, the following packages plus any of dependencies must be updated to the latest:
利用新的命令,更新ssl。

yum
curl
openssl
nss

具体操作步骤:

1) yum-config-manager --disable centrify.repo
2) yum clean all
3) yum update yum
4) yum update curl
5) yum update openssl
6) yum update nss
7) yum-config-manager --enable centrify.repo

这样搞完后,我的问题解决了!

参考文档:https://centrify.force.com/support/Article/KB-11461-Centrify-Yum-repo-fails-with-Errno-14-problem-making-ssl-connection/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • =========================================================...
    _灯火阑珊处阅读 2,565评论 0 3
  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 3,020评论 0 0
  • 记于2019.12.27 亲爱的朋友,我5:30就起床了。 窗外一片暗黑,也透着阴凉,盖着所有人的美梦。 我也起来...
    LL乐乐LL阅读 400评论 3 7
  • 我跟喵喵的感情,又回到了冰点!只因刚饭后玩闹时,我偷听了他的语音信息。 他曾跟我说:事无不可对我言!为此,他特意在...
    isirrfc阅读 149评论 0 0
  • 以前总是看过的东西当时很新鲜很热乎很有感,过个十天半月的,可能主人公的名字都想不起来了,所以呢,还是老老实实的用纸...
    Mandy暖阅读 344评论 1 2

友情链接更多精彩内容