Skip to content

Instantly share code, notes, and snippets.

@whereisaaron
Created June 1, 2017 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whereisaaron/c88f13013fbf0b431b40d27963b6e2ac to your computer and use it in GitHub Desktop.
Save whereisaaron/c88f13013fbf0b431b40d27963b6e2ac to your computer and use it in GitHub Desktop.
#!/bin/bash
# Uses trick to get openssl to display all certificates from a PEM file, rather than only the first
# http://comments.gmane.org/gmane.comp.encryption.openssl.user/43587
${1?Must supply filename for PEM file}
openssl crl2pkcs7 -nocrl -certfile $1 | openssl pkcs7 -print_certs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment