LoginSignup
1
0

yumコマンド実行時に"SSL certificate problem: certificate has expired"

Posted at

時々しか使わないCentOS7のサーバでyumコマンドを実行すると、
listの結果は表示されるけど、「証明書の期限が切れている」と言われる。

$ sudo yum list --showduplicates gitlab-ce|grep 15\.|tail -n 2
https://download.sublimetext.com/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#60 - "SSL certificate problem: certificate has expired"
他のミラーを試します。
It was impossible to connect to the CentOS servers.

いや、別に証明書を使っているつもりはないんだけど....と
思いつつも検索してみると、ここがヒット

なぜかhttps通信がエラーになってしまった時の対応【小ネタ】

こちらのブログには「外部のURLは超有名なサービスのものなので」と
あったけど、こちらはyumの実行。
『サーバ内部の証明書』との説明を読んで納得して

$ sudo yum update ca-certificates

を実行

$ sudo yum list --showduplicates gitlab-ce|grep 15\.|tail -n 2
gitlab-ce.x86_64              15.11.9-ce.0.el7                 gitlab_gitlab-ce 
gitlab-ce.x86_64              15.11.10-ce.0.el7                gitlab_gitlab-ce 

先ほどまでのエラーメッセージは表示されなくなった

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0