See the follwing article for an in-depth explanation and walkthrough of this repo https://medium.com/lydtech-consulting/securing-kafka-with-mutual-tls-and-acls-b235a077f3e3
- Ensure OpenSSL and a recent version of the Java JRE are installed (Java
keytool
needed for some steps) - Create CA keypair (
./certCreation/create-ca.sh
) - Create Server private key, and issue a cert signed by the CA (
./certCreation/create-server-cert.sh
) - Create client private key, and issue cert signed by the CA (
./certCreation/create-client-cert.sh
)
docker-compose up -d
to start Zookeeper and Kafka. Kafka will use the server keystore & truststore
- List topics (
scripts/list-topics.sh
) - CLI consume (
scripts/consume.sh
) - CLI produce (
scripts/produce.sh
)