LoginSignup
6

More than 5 years have passed since last update.

Alpine Linuxで動作するfluentdでcertificate verify failedエラー

Last updated at Posted at 2016-03-04

現象

fluentdをDockerで運用していると、AWS SDK for Rubyを利用したpluginで下記のようなエラーが発生するようになった。

$ 2016-03-04 12:49:53 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2016-03-04 12:49:52 +0000 error_class="Seahorse::Client::NetworkingError" error="SSL_connect returned=1 errno=0 state=error: certificate verify failed" plugin_id="object:3fe59dea15c4"

解決策

SSL証明書の場所をDockerfileなどで環境変数を指定してあげる。(apkでca-certificatesをインストールしている前提)

ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt

参考文献

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
6