-
Notifications
You must be signed in to change notification settings - Fork 180
Self-signed certs: certificate verification error on connect #252
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
Any update on this issue? |
We also have the exact same issue. We are also using IPA as our CA. Kafka is successfully using SSL using those certs, but we cannot cannot connect to Kafka using SSL. In the Kafka logs we are also getting the following error:
And on fluentd server the same issue as well:
|
I tried my certificates in a small python app and the output I got there, was more verbose. Turns out I had to add both root and intermediate CA. |
@edmeister Did you |
@kyentei yes, I just combined them in one file. That was a faster solution than figuring out how to configure it. |
That sadly didn't resolve the matter for us. Testing with openssl shows the certificates are valid, and hooking up other applications to kafka works flawlessly. |
This seems to be a bug (?) in So in your CA file get rid of intermediate CA and just put the root CA instead i.e. last one (or have multiple files with one each).
to
|
We did have a similar situation @skbly7, but I've tried loading both of our certificates individually and it still fails. For our first certificate I get:
and for the second one:
|
Nevermind. I checked the broker URL and it was connecting to our round-robin DNS name instead of the server directly. Using only the second certificate, as mentioned previously seems to fix the issue. |
I'm closing this as a duplicate of #287 since that more accurately describes the issue. The self-signed part isn't actually the issue, it's the fact that multiple certificates in the same file aren't being handled correctly. |
Using self-signed certificates to connect to Kafka doesn't appear to be supported, even when providing the CA certificate in the fluentd config. I'm getting the following error on connect:
I've also tried adding the CA entry as an array (
ssl_ca_cert ["/etc/ipa/ca.crt"]
), and get the same error.The same certificates/keys work fine for fluent-bit kafka output:
The text was updated successfully, but these errors were encountered: