I used simple producer on Windows, but when I tried it to run on Ubuntu I got:
SSL handshake failed: error:0A000086:SSL routines::certificate verify failed: broker certificate could not be verified, verify that ssl.ca.location is correctly configured or root CA certificates are installed (install ca-certificates package) (after 5ms in state SSL_HANDSHAKE)
librdkafka docs said about ssl.ca.location:
File or directory path to CA certificate(s) for verifying the broker's key. Defaults: On Windows the system's CA certificates are automatically looked up in the Windows Root certificate store. On Linux install the distribution's ca-certificates package.
I didn't find any info how to get right certificate from Windows certificate store & transfer it to Ubuntu server. Can you help me how to get right certificate and make producer work on Ubuntu, please?
from confluent_kafka import Producerkafka_config = {'bootstrap.servers': 'kafka...:9092, ... , kafka:9092','client.id': socket.gethostname(),'security.protocol': 'SSL','ssl.key.location': '/path/to/kafka-keystore.key.pem','ssl.key.password': '12345','ssl.certificate.location': '/path/to/kafka-keystore.crt.pem'}producer = Producer(kafka_config)