Skip to content

Instantly share code, notes, and snippets.

@huynhbaoan
Created April 21, 2026 12:31
Show Gist options
  • Select an option

  • Save huynhbaoan/42169661263edb0a19e173ef29519313 to your computer and use it in GitHub Desktop.

Select an option

Save huynhbaoan/42169661263edb0a19e173ef29519313 to your computer and use it in GitHub Desktop.
awk '/BEGIN CERTIFICATE/{n++}{print > ("cert" n ".pem")}' /Users/P009979/Downloads/ami-trustedchain
for f in cert*.pem; do echo "===== $f ====="; openssl x509 -in "$f" -noout -subject -issuer -serial -fingerprint -sha256; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment