-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat(transport): add mTLS for Kafka #367
Conversation
hi @lspgn, can we have an option to add server CA to trust also. getting error="kafka: client has run out of available brokers to talk to: tls: failed to verify certificate: x509: certificate signed by unknown authority for kafka transport" when trying to test. |
Try now |
@lspgn |
Ah sorry, misplaced a statement and didn't have the proper test bed. Could you retry now? |
Hi @lspgn, thanks for your help on this. I am failing to load a CA cert. I have tried a few different ones, in PEM format but keep getting this error: =ERROR msg="error transporter" error="error parsing server CA: x509: malformed certificate for kafka transport". This truststore works fine with pmacct so believe the file is good. |
Will have a look. Might be due to the PEM encoding. Would you be able to try directly in a DER binary format? |
This should be fixed. It was indeed missing pem decoding. Made a test TLS server for me to test:
|
yes, DER works ;). |
i can confirm PEM now works with your new amendment. thanks a lot! |
Adds TLS configuration for client certificate.
Closes #363