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.

An error occurred when sending a notification using 'slack' notifier.OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) 的なエラーの解決方法

Posted at

エラー内容

本番サーバーで以下のことを行ったら表題のエラーが出ました。

  • Slackにエラー通知を実装(gem 'exception_notification')
  • Cloudinaryに画像をアップロード
An error occurred when sending a notification using 'slack' notifier.OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)

解決方法

本番サーバーにログインし、以下実行。

curl -fsSL curl.haxx.se/ca/cacert.pem -o "$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')"

解決しない場合はnginxやサーバーの再起動を行ってみてください。

参照

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?