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 pass rejectUnauthorized: false #164

Open
maikelmclauflin opened this issue Dec 8, 2020 · 3 comments
Open

any way to pass rejectUnauthorized: false #164

maikelmclauflin opened this issue Dec 8, 2020 · 3 comments

Comments

@maikelmclauflin
Copy link
Contributor

title says it all. it doesn't look like this option is available. having difficulty because i am in a self signed env

@rob3000
Copy link
Member

rob3000 commented Dec 8, 2020

Hi @maikelmclauflin ,

Are you able to provide some code samples so we can replicate it?

@maikelmclauflin
Copy link
Contributor Author

maikelmclauflin commented Dec 8, 2020

no code anymore but got this error:

Error: self signed certificate
  at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
  at TLSSocket.emit (events.js:315:20)
  at TLSSocket.EventEmitter.emit (domain.js:486:12)
  at TLSSocket._finishInit (_tls_wrap.js:932:8)
  at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)

i think i found that i was hitting here:

this.kafkaClient = new Kafka({
and saw that there was no option to allow for bypass. adding

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'

seems to have worked

@maikelmclauflin
Copy link
Contributor Author

i am using basic cert setup but with different kafka image (confluent)

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