ERROR: certificate common name “img.ucdl.pp.uc.cn” doesn’t match requested host name “mirrors.aliyun.com”.

操作系统:centos6.0 64位
问题:下载阿里云的yum源到本地,出现如下错误
截图:
解决办法:
办法1:将https://mirrors.aliyun.com/repo/epel-6.repo改为http:///mirrors.aliyun.com/repo/epel-6.repo
方法2:在最后添加--no-check-certificate 参数,意思是不检查证书

作者:ccku
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。如有问题或建议,请多多赐教,非常感谢。
原文地址:https://www.cnblogs.com/ccku/p/13523591.html