Enable TLS for Event Streaming Framework
Enable Transport Layer Security (TLS) connections for Event Streaming Framework so that it can communicate with a TLS-enabled Kafka cluster.
About this task
Important: Only use certificates obtained from a
reputable and trusted certificate authority.
Procedure
-
In server.properties, add the following TLS configuration:
listeners=SSL://kafka.alias.com:9093 ssl.keystore.location=path/keystore/keystore.p12 ssl.keystore.password=keystore-password
- Start the Zookeeper server.
- Start the Kafka server.
-
In the stream configurations YAML file for Event Streaming Framework, change the
bootstrap.servers
port to require the Kafka-hosted certificate, and specify that the port is using TLS:settings: bootstrap.servers: kafka.mtxssl.com:9093 security.protocol: SSL