Configure SASL_SSL using keycloak and give custom ssl certificates #4483
Unanswered
shobishani
asked this question in
Q&A
Replies: 1 comment 13 replies
-
It is a long time since I used OpenSSL ... it looks roughly correct, but it is possible I missed something there. The Kafka CR looks fine to me. Java has a nice SSL debugging feature, but I'm not sure if something similar exists in Python to see what exactly the handshake issue is. Maybe doing |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've successfully configured
SASL_PLAINTEXT
using an internal listener withkeycloak
and it works fine, But when I try to configure it usingSASL_SSL
withkeycloak
and giving my custom SSL certificates it does run but I'm unable to connect to the cluster usingkafka-python
I got this error
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1125)
.I'm using nginx ingress controller and I've enabled
TLS passthrough
Here is my helm chart deployment in
--dry-run
mode.And here is how I generated certificates maybe these are the wrong certificates?
OpenSSL config file for SAN for kafka cluster as per docs:
Then I renamed the certificates to create kubernetes secret
Then to created secret:
kubectl create secret generic kafka-custom-tls --from-file=fgasp-key.key --from-file=fgasp-cert.crt -n kafka-cluster
after creating secret I deployed kafka and here is how I'm connecting to the kafka cluster using these certs
Here are some logs from
pod/kafka-kafka-0
and that's all I get whenever I try to connect.So I'm not sure If I'm trying to connect using incorrect certificates or perhaps I created incorrect certificates or the deployment is incorrect, I've gone through the documentation multiple times and I'm not sure what is it that I'm doing wrong.
Please tell me if something else is required to help me.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions