To generate tls assets with these tools, please install:
To create new tls assets including a new private Certificate Authority (CA) run:
./create-tls-assets.sh
Note: Each time you run create-tls-assets.sh
it will not recreate the CA pem or private key file. Instead it will reuse the existing CA to create new tls assets.
Deployment requires you have a running kubernetes cluster with kubectl
installed locally.
Deploy into kubernetes with:
./deploy-tls-assets.sh -e dev
kubectl get secret -n dev -o yaml tls-api-server | grep api-crt.pem | awk '{print $2}' | base64 -d | openssl x509 -text
kubectl get secret -n dev -o yaml tls-api-server | grep api-ca.pem | awk '{print $2}' | base64 -d | openssl x509 -text
kubectl get secret -n dev -o yaml tls-kafka-cluster-0-server | grep kafka-cluster-0-crt.pem | awk '{print $2}' | base64 -d | openssl x509 -text
kubectl get secret -n dev -o yaml tls-kafka-cluster-0-server | grep kafka-cluster-0-ca.pem | awk '{print $2}' | base64 -d | openssl x509 -text