Created
January 23, 2012 08:24
-
-
Save mikedamm/1661730 to your computer and use it in GitHub Desktop.
A quick tool to help you resolve intermediate certificate chains
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
#!/bin/bash | |
echo -ne "File:\t" | |
echo $1 | |
echo -ne "Hash:\t" | |
openssl x509 -noout -hash -in $1 | |
echo -ne "Issuer:\t" | |
openssl x509 -noout -issuer -in $1 | |
echo -ne "Issuer Hash:\t" | |
openssl x509 -noout -issuer_hash -in $1 | |
echo -ne "Fingerprint:\t" | |
openssl x509 -fingerprint -md5 -noout -in $1 | cut -d'=' -f2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment