Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 12 working version #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 !

6 changes: 6 additions & 0 deletions create-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down