Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6056

confluent kafka python - certificate verification

$
0
0

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)

Viewing all articles
Browse latest Browse all 6056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>