Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.56 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.56 KB

Generating TLS Assets with CFSSL

To generate tls assets with these tools, please install:

Create

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.

Deploy

Deployment requires you have a running kubernetes cluster with kubectl installed locally.

Deploy into kubernetes with:

./deploy-tls-assets.sh -e dev

Verify API TLS Assets

Cert
kubectl get secret -n dev -o yaml tls-api-server | grep api-crt.pem | awk '{print $2}' | base64 -d | openssl x509 -text
CA
kubectl get secret -n dev -o yaml tls-api-server | grep api-ca.pem | awk '{print $2}' | base64 -d | openssl x509 -text

Verify Kafka TLS Assets

Cert
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
CA
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