Last active
February 12, 2026 09:35
-
-
Save vi7/7d7c2db6c3745f806cb890a960ae361b to your computer and use it in GitHub Desktop.
Simple bash script for openssl command to get info on all certificates in the provided certificate bundle text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| bundle_file="${1:-bundle.crt}" | |
| awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/' "$bundle_file" | \ | |
| while openssl x509 -noout -subject -dates -issuer 2>/dev/null; do | |
| echo "---" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment