Closed abhimanyuseth-alation closed 2 months ago
I even tried passing cacert.pem but got the same error.
So I found a post that mentioned converting the jks keystore to a pem cert https://stackoverflow.com/a/656559/4484956
Using this, I converted the jks keystore used in the kafka broker to a pem cert and specified the pem file in ssl.ca.location and it worked!
Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ
Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions
Description
I've configured kafka (3.6.1) with ssl using Confluent documentation https://docs.confluent.io/platform/current/security/security_tutorial.html#generating-keys-certs
I'm able to use the kafka-console-producer.sh and kafka-console-consumer.sh with the jaas configuration to produce and consume a message.
We have python client which uses librdkafka. I'm on the latest confluent-kafka-python library (2.5.0), and ca-certificates package installed. Tried this on ubuntu 20 and RHEL8
Just trying the AdminClient right now and it always fails with certificate error complaining about ssl.ca.location or ca-certificates package. I generated a pem cert as per instructions on librdkafka doc: https://github.com/confluentinc/librdkafka/wiki/Using-SSL-with-librdkafka and passing that for ssl.ca.location
How to reproduce
Setup Kafka and Zookeeper as per Confluent SSL doc https://docs.confluent.io/platform/current/security/security_tutorial.html#generating-keys-certs
Setup latest librdkafka 2.5 and install confluent-kafka-python 2.5.0
IMPORTANT: Always try to reproduce the issue on the latest released version (see https://github.com/confluentinc/librdkafka/releases), if it can't be reproduced on the latest version the issue has been fixed.
Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
2.5.0
3.6.1
<REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
<REPLACE with e.g., Centos 5 (x64)>
debug=..
as necessary) from librdkafka