Featured image of post How to Resolve [Errno 14] curl#60 – 'Peer's Certificate has expired.' Issue

How to Resolve [Errno 14] curl#60 – 'Peer's Certificate has expired.' Issue

This error frequently occurs while executing yum update or yum install on a newly installed server. The error indicates...

When performing a yum update or yum install on a newly installed server, you may often encounter the following error:

1
[Errno 14] curl#60 - "Peer's Certificate has expired."

This error indicates that the date and time on your CentOS system are inconsistent with those of the yum repository, making it impossible for yum to verify the SSL certificate of the repository.

In simpler terms, this means that the system time on your server is significantly different from the time on the repository server. Generally, this is caused by your system’s time being unsynchronized.

For solutions, refer to the article on our site: Methods for Synchronizing System Server Time. Link: https://bmzhp.com/knowledge/419

If your server is connected to the internet and ntpdate is installed, you can use the second method outlined in the article directly. If you’re on a newly installed server that is not connected to the internet or encounters errors while running yum, you can use the first method to manually update the time.

Licensed under CC BY-NC-SA 4.0