-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to enable SSL with rdkafka-dotnet #60
Comments
See https://github.com/edenhill/librdkafka/wiki/Using-SSL-with-librdkafka and https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md Basically you need to set these config options:
|
thank you very much, i'll give it a try. |
Let me know how it goes, I'm interested! Enabling the debug config setting might help if it doesn't just work. |
Are you running this on Windows or Linux? |
I am running the producers / consumers on windows 10 and the kafka brokers / zookeeper are running in redhat |
Cheers! |
Hello , Please also provide some details on I am sorry if this question is too basic . But i will be gr8ful if you can guide . |
Hey, I have played around with this and I have got the kafka over SSL working. I did not go as far as configuring topic permissions based on the client certificate but I can help get you started with getting kafka working over SSL. The end result for me ended up being one port for external access using SSL and another port for internal services along with communication between brokers as plaintext. I found that the SSL very negatively affects performance so I left the internal traffic with plaintext. I used the following guides: I created my own CA(Certificate Authority) to self sign my other certificates. Follow the guide from the first link I sent you, I basically followed that step by step. Good Luck! |
Thank you for the detailed response. the step by step guide is perfect. Last think . Is there special configs / step which i need to take care while connecting to Kafka over SSL using rdkafka-dotnet api. Can you please provide information with respect to rdkafka-dotnet api usage with SSL. What extra code is required ? In my current scenraio the staging environment is already setup without SSL and rdkafka-dotnet api works perfect. But the production is on SSL . Thank you in advance |
Add the following to the config object passed into the producer / eventconsumer constructors. |
According to this guide we should use following client config options: But when I use it in C# I have a error: Error: No such configuration property: "ssl.truststore.location" My kafka server is configured with truststore. I have only truststore.jks file. When I use this config from CMD it works fine, but from C# it leads to error. How I can connect to kafka server, when I have only truststore.jks file? |
rdkafka-dotnet, which is based on librdkafka, does not use Java key stores. |
Disamis, The step by step would have generated a ca-cert file and a cert-signed file. Use those files with the above settings and it should work. |
Thank you all. It works with ca-cert and cert-signed files. |
Good to hear. If you take it any further and setup different client certs with access to different topics please post your results here. |
I have just started using this library and cannot find any documentation on how to setup SSL with rdkafka-dotnet.
The text was updated successfully, but these errors were encountered: