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

These steps assume a non self-signed certificate that accepts a host name alias with a host name that resolves to the IP address of the server running Event Streaming Framework.
Important: Only use certificates obtained from a reputable and trusted certificate authority.

Procedure

  1. 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
  2. Start the Zookeeper server.
  3. Start the Kafka server.
  4. 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