KAFKACONNETOR: Could not use TLS MONGODB connection.uri

Hi Alberto,
I’m trying to do the same thing connecting with mongoTSL and I’ve had this problem too.
I have a docker with kafka and connect and in both I copied the client and server with CA certificates to these folders in my Dockerfile which solved this problem.

COPY certificates/* /etc/alternatives/jre/lib/security
COPY certificates/* /etc/ssl/certs
COPY certificates/* /etc/pki/ca-trust/source/anchors/
COPY certificates/* /etc/pki/ca-trust/extracted/java/
COPY certificates/* /etc/pki/java
COPY certificates/* /usr/lib/jvm/zulu11-ca/lib/security/

and then imported by keytool
RUN cd /etc/pki/java && keytool -import -alias mongodb-client -keystore /etc/pki/java/cacerts -file mongodb-client.pem -noprompt -keypass changeit -storepass changeit
RUN cd /etc/pki/java && keytool -import -trustcacerts -file mongodb-ca.pem -noprompt -keypass changeit -storepass changeit

But I also can’t connect with TSL because the connection.uri doesn’t accept the tlscertificatekeyfile parameter, even open a question at Kafka Connector with MongoDB TSL

Regards.