Skip to content

Instantly share code, notes, and snippets.

@NeilMasters
Created June 27, 2016 14:05
Show Gist options
  • Save NeilMasters/4bd0cd97d5bea3739ad7f5b99f35f9d7 to your computer and use it in GitHub Desktop.
Save NeilMasters/4bd0cd97d5bea3739ad7f5b99f35f9d7 to your computer and use it in GitHub Desktop.
List all support certificates
# 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