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

any way to avoid the ca_location flag? #43

Closed
aaadir opened this issue Feb 21, 2019 · 4 comments
Closed

any way to avoid the ca_location flag? #43

aaadir opened this issue Feb 21, 2019 · 4 comments

Comments

@aaadir
Copy link

aaadir commented Feb 21, 2019

The code currently uses the ca_location flag to set the ssl certificate path:
self.opts['ca_location'] = '/etc/ssl/certs'

Is there anyway to avoid this step?
I tried passing False, None, '' but this failed in various way.
Any help would be welcome.

Thanks, Allon.

@mimaison
Copy link
Contributor

You need to provide this settings in order to enable the kafka client to verify the broker keys. This is necessary to ensure you indeed connect to the IBM Event Streams brokers.

You should NOT try to disable this security feature but instead understand where this file/folder is located on your system and ensure you follow the best security practices. If you're having issues locating the correct path for your environment, let us know and we can try helping.

@mimaison
Copy link
Contributor

Closing due to inactivity.

@ericqqqqq
Copy link

Hey @mimaison

I am going to use node-rdkafka in IBM Functions. In other words, I need to locate certificate in IBM Functions(serverless).

Any solutions?

Thanks,
Eric

@mimaison
Copy link
Contributor

Have you tried using /etc/ssl/certs like mentioned in https://github.com/ibm-messaging/event-streams-samples/blob/master/kafka-nodejs-console-sample/app.js#L70?

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

3 participants