高木のブログ

【Amazon Linux 2】「curl: (60) SSL certificate problem: certificate has expired」の対応

· 119 words · 1 minutes to read
Tags: Amazon Linux

問題 🔗

Amazon Linux 2 の EC2 インスタンスから curl ができなくなった

$ curl https://ifconfig.me
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

解決方法 🔗

CA 証明書を更新してあげたら良い

$ sudo yum update ca-certificates

Before 🔗

$ yum list installed | grep ca-certificates
ca-certificates.noarch                2020.2.41-70.0.amzn2.0.1       @amzn2-core

After 🔗

$ yum list installed | grep ca-certificates
ca-certificates.noarch                2021.2.50-72.amzn2.0.7         @amzn2-core

参考 🔗

Categories


Tags