I'm testing kafka cluster creation using let's encrypt staging certs. After creating, on my machine, I run the kafka-provided kafka-console-consumer.sh
and kafka-console-producer.sh
scripts. When I ran with let's encrypt production, it worked fine. But now that I'm using staging certs, I get this when I run the producer:
ERROR [Producer clientId=console-producer] Connection to node -1 (2.kafka.mysite.com/10.1.17.191:9092) failed authentication due to: SSL handshake failed (org.apache.kafka.clients.NetworkClient)
I use these properties for producer script:
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="kafka" password="secret";
security.protocol=SASL_SSL
sasl.mechanism=PLAIN
I'd like to give the option to ignore TLS, and I'd like it to be some parameter I can toggle (on the cluster or on the client) to allow it. How can I achieve this? For anyone familiar with Rabbitmq, I think it's similar to VERIFY_PEER=false, aka VERIFY_NONE.
Connection to node -1 (2.kafka.mysite.com/10.1.17.191:9092...
? Also, what kafka version you're on? – Affiliatelisteners: "SASL_SSL://0.0.0.0:9092"
and alsossl.endpoint.identification.algorithm: ""
. kafa version = 2.2.0 – Argotssl.endpoint.identification.algorithm:
(remove""
)? – Affiliateopenssl s_client -showcerts -debug -connect <host:port>
? – Affiliateissuer=/CN=Fake LE Intermediate X1
. So I expect that. I'd like to know how to configure kafka to not worry about certs, but still use encryption in transit. – Argot