Skip to content

Instantly share code, notes, and snippets.

@mikedamm mikedamm/info.sh

Created Jan 23, 2012
Embed
What would you like to do?
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
You can’t perform that action at this time.