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

Unsupported value "sasl_ssl" for configuration property "security.protocol": OpenSSL not available at build time #1111

Open
sojinantony01 opened this issue Jan 25, 2025 · 2 comments

Comments

@sojinantony01
Copy link

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: Sequoia MacOS 15.1
  • Node Version [e.g. 8.2.1]: 18
  • NPM Version [e.g. 5.4.2]: 10.5.0
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]:
  • node-rdkafka version [e.g. 2.3.3]: 3.2.1

Steps to Reproduce
Setup Node JS - node-rdkafka env for kafka consumer in mac OS 15
Run consumer having below configurations

Error message:
Unsupported value "sasl_ssl" for configuration property "security.protocol": OpenSSL not available at build time

node-rdkafka Configuration Settings
'metadata.broker.list': ['localhost:9004'],
'security.protocol': 'sasl_ssl',
'ssl.ca.location': '',
'sasl.mechanism': 'PLAIN',
'sasl.username': "",
'sasl.password': "",
'client.id': "myclient",
'group.id': "mygroup"

Additional context
Unsupported value "sasl_ssl" for configuration property "security.protocol": OpenSSL not available at build time

@sojinantony01
Copy link
Author

sojinantony01 commented Jan 25, 2025

Resolved it by adding new openssl path

export CPPFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.4.0/include
export LDFLAGS=-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib

And created a readme update PR: #1112

@bliu13
Copy link

bliu13 commented Jan 27, 2025

Resolved it by adding new openssl path

export CPPFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.4.0/include
export LDFLAGS=-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib

And created a readme update PR: #1112

You can also try Confluent's Javascript Kafka library as an alternative option. The API is backwards compatible.

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