Kafka-node: How to connect to Kafka with SSL endpoint enabled?

Created on 11 May 2017  路  2Comments  路  Source: SOHU-Co/kafka-node

We are struggling with SSL configuration to connect to a SSL enabled endpoint.

It would be awesome to have an example on how to achieve that in the project README.md. Maybe an SSL connection section?

Most helpful comment

+1 on that, the Readme only mentions that it's necessary to pass a sslOptions object to the Client constructor but there are no documentation about what those options are.

All 2 comments

+1 on that, the Readme only mentions that it's necessary to pass a sslOptions object to the Client constructor but there are no documentation about what those options are.

We pass those options directly to tls.connect call. See node's TLS module

We also test SSL in our code. Hope that helps.

Was this page helpful?
0 / 5 - 0 ratings