All checks were successful
ci/woodpecker/push/build/4 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/predeploy Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/deploy/1 Pipeline was successful
ci/woodpecker/push/deploy/3 Pipeline was successful
ci/woodpecker/push/deploy/4 Pipeline was successful
ci/woodpecker/push/deploy/2 Pipeline was successful
ci/woodpecker/tag/predeploy Pipeline was successful
ci/woodpecker/tag/build/4 Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/tag/build/3 Pipeline was successful
ci/woodpecker/tag/build/2 Pipeline was successful
ci/woodpecker/tag/deploy/2 Pipeline was successful
ci/woodpecker/tag/deploy/3 Pipeline was successful
ci/woodpecker/tag/deploy/4 Pipeline was successful
ci/woodpecker/tag/deploy/1 Pipeline was successful
24 lines
605 B
Bash
Executable File
24 lines
605 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "=== mTLS CA Setup ==="
|
|
|
|
# Create CA directory
|
|
mkdir -p ca
|
|
|
|
# Generate CA private key
|
|
echo "Generating CA private key..."
|
|
openssl genrsa -out ca/ca.key 2048
|
|
|
|
# Generate CA certificate
|
|
echo "Generating CA certificate..."
|
|
openssl req -new -x509 -days 3650 -key ca/ca.key -out ca/ca.crt \
|
|
-subj "/DC=de/DC=hottis/DC=homea2/CN=Home Automation CA"
|
|
|
|
echo ""
|
|
echo "=== CA Setup Complete ==="
|
|
echo "CA Certificate: ca/ca.crt"
|
|
echo "CA Private Key: ca/ca.key"
|
|
echo ""
|
|
echo "Deploy to Kubernetes:"
|
|
echo "kubectl create secret generic mtls-ca-cert --from-file=ca.crt=ca/ca.crt -n homea2" |