diff --git a/README.md b/README.md index 74f2f1b..50905a1 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,17 @@ -# Kafka SSL Compose +# Kafka, SSL, docker compose -Provide docker-compose file and scripts for 2 Way SSL Kafka +Docker-compose file and scripts for two Way Kafka SSL. -## How-to Use +## Usage -1. Execute `./create-certs.sh` to generate self-signed CA and certs -2. Run `docker-compose up` +0. Make sure keytool installed. + +In debian 12 system + +``` +sudo apt install openjdk-17-jre +``` +2. Execute `./create-certs.sh` to generate self-signed CA and certs. +3. Run `docker-compose up` to start. -That's all folks ! diff --git a/create-certs.sh b/create-certs.sh index 53a6acb..c29ee96 100755 --- a/create-certs.sh +++ b/create-certs.sh @@ -3,6 +3,12 @@ set -o nounset \ -o errexit +if ! command -v keytool &> /dev/null +then + echo "keytool could not be found." + exit 1 +fi + printf "Deleting previous (if any)..." rm -rf secrets mkdir secrets