解决CentOS7报错 [Errno 14] curl#60 – “Peer’s Certificate has expired.” –技术流ken




[root@ken yum.repos.d]# cat /etc/yum.repos.d/net.repo





[root@ken yum.repos.d]# yum install cobbler dhcp tftp-server xinetd syslinux httpd -y
Loaded plugins: fastestmirror
Determining fastest mirrors
centos | 3.6 kB 00:00:00
https://mirrors.aliyun.com/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#60 – “Peer’s Certificate has expired.”
Trying other mirror.
It was impossible to connect to the CentOS servers.
This could mean a connectivity issue in your environment, such as the requirement to configure a proxy,
or a transparent proxy that tampers with TLS security, or an incorrect system clock.
You can try to solve this issue by using the instructions on https://wiki.centos.org/yum-errors
If above article doesn’t help to resolve this issue please use https://bugs.centos.org/.

One of the configured repositories failed (epel),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum –disablerepo=epel …

4. Disable the repository permanently, so yum won’t use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use –enablerepo for temporary usage:

yum-config-manager –disable epel
subscription-manager repos –disable=epel

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice

yum-config-manager –save –setopt=epel.skip_if_unavailable=true

failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try.
https://mirrors.aliyun.com/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#60 – “Peer’s Certificate has expired.”   #提示证书过期




一、首先使用yum clena all清空了缓存,但是发现下载依然是同样的报错,





[root@ken yum.repos.d]# ntpdate time1.aliyun.com


再次下次就成功了,所以 [Errno 14] curl#60 – “Peer’s Certificate has expired.”这种问题就是出在了当前系统时间不对导致的!




export HISTTIMEFORMAT="%F %T `whoami` "



[root@ken2 ~]# source /etc/profile




 1033  2019-10-10 15:32:10 root vim /etc/profile
 1034  2019-10-10 15:32:20 root source /etc/profile
 1035  2019-10-10 15:32:28 root vim /etc/profile
 1036  2019-10-10 15:32:35 root source /etc/profile
 1037  2019-10-10 15:32:38 root history
 1038  2019-10-10 15:32:49 root vim /etc/profile
 1039  2019-10-10 15:32:57 root source /etc/profile
 1040  2019-10-10 15:32:58 root history


22 thoughts on “解决CentOS7报错 [Errno 14] curl#60 – “Peer’s Certificate has expired.” –技术流ken

  1. Hello this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors
    or if you have to manually code with HTML. I’m starting a blog soon but have
    no coding expertise so I wanted to get advice from someone
    with experience. Any help would be greatly appreciated!

    P.S. If you have a minute, would love your feedback on my new website re-design. You can find it by searching for “royal cbd” – no sweat if you can’t.

    Keep up the good work!

  2. Heya i’m for the primary time here. I came across this board and I find
    It really useful & it helped me out a lot. I am hoping to give
    one thing again and aid others like you aided me.

  3. Do you have a spam issue on this blog; I also am a blogger,
    and I was wanting to know your situation; we have developed some nice practices and we are looking to
    trade strategies with other folks, why not shoot me an e-mail
    if interested.

  4. I’m not sure where you are getting your information, but good topic.
    I needs to spend some time learning much more or understanding more.

    Thanks for fantastic info I was looking for
    this info for my mission.

  5. I抦 impressed, I need to say. Really not often do I encounter a blog that抯 both educative and entertaining, and let me let you know, you could have hit the nail on the head. Your idea is excellent; the issue is one thing that not sufficient individuals are speaking intelligently about. I am very pleased that I stumbled across this in my search for something referring to this.

  6. This is the proper weblog for anybody who desires to search out out about this topic. You notice so much its nearly laborious to argue with you (not that I actually would want匟aHa). You undoubtedly put a brand new spin on a subject thats been written about for years. Nice stuff, just great!

  7. Nice post. I be taught something more challenging on totally different blogs everyday. It would at all times be stimulating to read content material from different writers and practice a little bit something from their store. I抎 prefer to make use of some with the content on my blog whether you don抰 mind. Natually I抣l give you a hyperlink on your net blog. Thanks for sharing.

  8. That is the best weblog for anyone who needs to find out about this topic. You realize so much its almost hard to argue with you (not that I truly would need匟aHa). You definitely put a new spin on a subject thats been written about for years. Nice stuff, just great!

  9. I found your weblog website on google and verify just a few of your early posts. Continue to keep up the superb operate. I just extra up your RSS feed to my MSN Information Reader. Searching for forward to reading extra from you afterward!?

  10. A lot of thanks for your entire effort on this website. My aunt takes pleasure in managing investigations and it’s obvious why. Almost all know all relating to the powerful ways you render valuable guidance on this web site and as well boost participation from other people about this article while my simple princess is now understanding a lot of things. Take pleasure in the rest of the new year. Your carrying out a powerful job.

  11. My spouse and i got quite cheerful Edward managed to finish up his inquiry through your ideas he had using your web pages. It’s not at all simplistic just to happen to be giving away tips and hints that a number of people may have been making money from. So we discover we have got the writer to be grateful to because of that. The type of explanations you’ve made, the straightforward blog menu, the friendships you can help to foster – it’s mostly fabulous, and it’s facilitating our son in addition to our family imagine that the subject matter is excellent, and that is very vital. Many thanks for all!

  12. I must voice my gratitude for your kindness giving support to folks who have the need for guidance on the study. Your real dedication to passing the solution along came to be definitely practical and have regularly helped people just like me to get to their ambitions. Your invaluable useful information means this much a person like me and extremely more to my colleagues. Many thanks; from all of us.

  13. I wish to express some thanks to the writer just for rescuing me from such a situation. Just after scouting through the the web and getting views that were not productive, I thought my life was gone. Being alive minus the answers to the problems you’ve resolved all through the guide is a serious case, as well as the ones which might have in a negative way affected my entire career if I hadn’t come across your blog. The natural talent and kindness in handling everything was excellent. I don’t know what I would’ve done if I had not encountered such a point like this. It’s possible to at this time relish my future. Thank you so much for your professional and results-oriented help. I won’t think twice to propose the sites to anybody who wants and needs guidelines about this matter.

  14. Thank you for your whole work on this web page. Ellie enjoys managing investigation and it’s really simple to grasp why. Most people notice all about the powerful means you produce very useful techniques by means of the web site and therefore improve response from the others about this area while our own girl is learning so much. Have fun with the remaining portion of the year. You are always performing a great job.

  15. A lot of thanks for all of your work on this website. My aunt really likes working on internet research and it is obvious why. Most of us learn all concerning the dynamic way you deliver simple tips and hints by means of this website and therefore foster participation from other people on this area of interest while our girl is in fact becoming educated so much. Have fun with the rest of the year. You are conducting a brilliant job.

  16. Thank you for all your valuable hard work on this web site. Debby really likes engaging in investigations and it’s really simple to grasp why. We all notice all concerning the lively mode you produce effective things on this web blog and therefore boost contribution from other people on the concept and our simple princess is in fact learning so much. Enjoy the remaining portion of the year. You are always conducting a powerful job.

  17. I and my buddies ended up going through the good tips found on the website and unexpectedly I got a horrible suspicion I had not thanked the site owner for those strategies. All the ladies came for this reason warmed to learn all of them and have surely been tapping into those things. Thanks for simply being so kind and for choosing variety of brilliant guides millions of individuals are really wanting to understand about. My personal sincere regret for not saying thanks to earlier.