Kafka Secure: Message Consumer

Kafka Secure: Message Consumer

Kafka provide a way to implement SSL security for both producers and consumer applications to connect the server. Kafka administrator who setup the secure Kafka, will also generate information/files for connecting to the server. This tutorial will show how to read from Kafka with SSL security.

Following information and files are required to connect to the Kafka secure server.
All the information required for connecting Secure Kafka need to be stored in the properties file. Click here to download sample SSL properties file.
*****************ssl_detail.properties**************
security.protocol=SSL
ssl.keystore.location=/full_path_to_file/kafka_client_keystore.jks
ssl.keystore.password=keystore_password
ssl.key.password=key_password
ssl.truststore.location=/full_path_to_file/kafka_client_truststore.jks
ssl.truststore.password=truststore_password
*************************************************


Getting Messages: '--consumer.config' attribute can be used to specify SSL properties to the consumer command.

Topic offsets: Checking Topic offsets in Secure Kafka