問題
先日、CentOS 6.9 で yum update したところ、以下のエラーが発生しました。
https://ca.mirror.babylon.network/remi/enterprise/6/remi/x86_64/repodata/repomd.xml: [Errno 14] PYCURL
ERROR 51 - "SSL: certificate subject name 'xxxxxx.xxx' does not match target host name 'ca.mirror.babylon.network'"
Trying other mirror.
対応
少し調べてみると「DNSサーバーの設定を変えて試してみるとよい」という情報も見付かったんですが、根本的な原因がイマイチつかめませんでした。
最終的には、以下のようにネットワークを再起動したら今回の症状が発生しなくなりました。
sudo /etc/init.d/network restart
何か釈然としませんが、直ったの今回はこれでよしとし、また発生した時に再度調べたいと思います。