Skip to content
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

Connect to broker using SSL #6

Open
piequi opened this issue Jun 8, 2018 · 2 comments
Open

Connect to broker using SSL #6

piequi opened this issue Jun 8, 2018 · 2 comments

Comments

@piequi
Copy link

piequi commented Jun 8, 2018

Hi there,

Your exporter is just the one I need, it exposes just the right thing ! My only concern is that I need to connect to the broker using SSL...

When I connect to the broker using kafka-consumer-groups.sh tool, I specify the following variables in a separated properties file and use the --command-config flag

security.protocol=SSL
ssl.keystore.location=/etc/kafka/keystore/keystore.jks
ssl.keystore.password=xxx
ssl.truststore.location=/etc/kafka/keystore/truststore.jks
ssl.truststore.password=xxx

In the sarama/client_tls_test.go they use something like :

config := NewConfig()
config.Net.TLS.Enable = true
config.Net.TLS.Config = clientConfig

With clientConfig being a GO TLS config (as far as I understand)...

Would there be a way to configure those properties in your exporter to establish a SSL connection ?

Thanks a lot

@echojc
Copy link
Owner

echojc commented Jun 9, 2018

Hey there, from a quick look at the docs I'm not sure that you can read Java keystores in Go without additional libraries such as https://github.com/pavel-v-chernykh/keystore-go. If you would like that support, it would seem best for you to fork the project. All the best!

@piequi
Copy link
Author

piequi commented Jun 12, 2018

Hi,
We actually create keystore and trusstore using crt and key files. I'll try to find a way to create that TLSConfig correctly using those files.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants