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