2017-11-16 16:42:22 +11:00

9 lines
136 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: $0 <certificate>";
exit;
fi
openssl x509 -in $1 -noout -fingerprint | awk '{print $2}'