Skip to content

Instantly share code, notes, and snippets.

@mikedamm
Created January 23, 2012 08:24
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 mikedamm/1661730 to your computer and use it in GitHub Desktop.
Save mikedamm/1661730 to your computer and use it in GitHub Desktop.
A quick tool to help you resolve intermediate certificate chains
#!/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