Created
June 1, 2017 18:52
-
-
Save whereisaaron/c88f13013fbf0b431b40d27963b6e2ac to your computer and use it in GitHub Desktop.
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
#!/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