Help with self signed ssl certificates #874
Replies: 2 comments 1 reply
-
Hi! Fist of all, thank you for the kind words 😄 Have you checked out our guide for enabling authentication in FastStream? From what I can see, your configuration should look something like this: import ssl
from faststream import FastStream
from faststream.broker.security import SASLPlaintext
from faststream.kafka import KafkaBroker
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
security = SASLPlaintext(ssl_context=ssl_context, username=kafkaUser, password=kafkaPass)
broker = KafkaBroker(kafka_host, security=security)
app = FastStream(broker) If you tried this already, please let us know what is the error you are getting so that we can possibly debug what is going wrong in the security configuration when connecting to the broker. |
Beta Was this translation helpful? Give feedback.
-
I did try your guides but they don't address this at all, and they're a bit over my head as well. Between ChatGPT and myself I was eventually able to get this work with a similar config as you posted above, thanks :) |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
I love what you're doing here and want to try it for my next project but I've never figured out how to make aiokafka work with our dev environment, where there's self-signed SSL certificates. I've tried something like
But it never works. I assume that's the issue preventing this from working. The only way I've gotten things to work is with the confluent kafka where I have a setup like this:
If anyone has any ideas I'd love to see this work. Even if not, I think this is a fantastic idea and only wish I could help more.
Beta Was this translation helpful? Give feedback.
All reactions