Skip to content

Instantly share code, notes, and snippets.

@leopay
Created May 28, 2020 08:29
Show Gist options
  • Save leopay/283dfd4b1b0be0c71f2a7b05b99e4ae0 to your computer and use it in GitHub Desktop.
Save leopay/283dfd4b1b0be0c71f2a7b05b99e4ae0 to your computer and use it in GitHub Desktop.
tkc exec $(tkc get po -lapp=ratings -ojsonpath={.items..metadata.name}) \
-c istio-proxy \
-- curl -s http://localhost:15000/config_dump | \
jq -r '.configs[-1].dynamic_active_secrets[0].secret.tls_certificate.certificate_chain.inline_bytes' | \
base64 -d | sed -n '/-----BEGIN /,/-----END/p; /----END/q'|openssl x509 -nocert -ext "subjectAltName"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment