Created
June 27, 2016 14:05
-
-
Save NeilMasters/4bd0cd97d5bea3739ad7f5b99f35f9d7 to your computer and use it in GitHub Desktop.
List all support certificates
This file contains 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
# Certificates commands | |
# 1) List all valid certificates | |
# 2) List all G5 certificates | |
# | |
# RedHat(because they want to be different): ca-bundle.crt | |
# Everyone else: ca-certificates.crt | |
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-bundle.crt | |
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-bundle.crt | grep "G5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment