SSL Certificate for Kafka running in Confluent Cloud

Hi!
I’m connecting to Kafka Broker in the Confluent Cloud (https://confluent.cloud/). I’m getting this error when I try to read a Kafka topic from my Flink job
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This problem might be solved if I register Kafka Broker certificate as trusted on my laptop. But how can I do it if I use Kafka through Confluent Cloud and I don’t see any option to download the certificate?

Hi,

have a look at

Confluent Cloud is using the ISRG Root X1 Root CA, this CA is required to be part of your trust store

hth,
michael