-
Notifications
You must be signed in to change notification settings - Fork 180
function read_ssl_file doesn't support chained certificates #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure this should be fixed in fluent-plugin-kafka or ruby-kafka. |
I think that because ruby-kafka expects to get array of certificates and actual file read is in fluent-plugin-kafka the plugin is proper place for implementation. Also current documentation is a bit misleading. As it doesn't say anything about lack of chaining support (neither that ssl_ca_cert is an array of files). |
There is a workaround: split the CA bundle file into individual PEM files and specify them as an array in fluent-plugin-kafka config: ssl_ca_cert ["root_ca.crt", "intermediate_ca.crt"] This takes advantage of
|
I'm working on a proper fix. |
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
#390 is the PR tracking work on this issue, hopefully that'll un-stale it. |
Fixed by #410 |
This is not mentioned explicitly in README.md, but read_ssl_file function doesn't support chained certificates. In *NIX environment this is very common that *.pem file contains multiple certificates concatenated together (eg. root CA + intermediate CA).
fluent-plugin-kafka/lib/fluent/plugin/kafka_plugin_util.rb
Line 35 in d0d9bbf
This is (most probably) easy to fix by splitting file during read on BEGIN CERTIFICATE line.
The text was updated successfully, but these errors were encountered: