Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created April 23, 2019 10:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuart-warren/54fb09a01a2d0772b8786a29039a0475 to your computer and use it in GitHub Desktop.
Save stuart-warren/54fb09a01a2d0772b8786a29039a0475 to your computer and use it in GitHub Desktop.
read cert from kubernetes
kubectl get secret <yourcert> -o=json | jq '.data["tls.crt"]' -r | base64 -d | openssl x509 -in /dev/stdin -text -noout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment