1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

curl実行時のcertificate has expiredエラーの解決策

Posted at

AmazonLinux2のEC2インスタンスで実行しているサーバからのslack通知が飛ばなくなった

$ curl -X POST -H 'Content-type: application/json' --data '{"text":"hogehoge"}' https://hooks.slack.com/services/HOGE/HOGE/HOGE
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.

証明書を更新して解決

$ sudo yum update ca-certificates
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?