Ditofry / kafka-w-config

kafka-w-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-kafka-ssl

Playing with SSL enabeled Kafka in Docker.

Requirements

  • openssl
  • keytool
  • docker
  • docker-compose

Instructions

Generate the required certificates and keystores:

./generate-docker-kafka-ssl-certs.sh

Run Kafka and Zookeeper

docker-compose up

Verify the SSL connection

openssl s_client -debug -connect localhost:9093 -tls1

NOTE: This currently fails to verify the handshake.

Put some messages into Kafka

echo "Something" | kafkacat -P -b 127.0.0.1:9092 -t test -X security.protocol=ssl -X ssl.key.location=./certs/docker.kafka.server.keystore.pem

References

About

kafka-w-config


Languages

Language:Shell 100.0%