diff --git a/ssl_get_fingerprint.sh b/ssl_get_fingerprint.sh new file mode 100755 index 0000000..d807e07 --- /dev/null +++ b/ssl_get_fingerprint.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +# Usage : ./ssl_get_fingerprint.sh URL + +openssl s_client -connect $1:443 -showcerts /dev/null \ + | openssl x509 -sha256 -fingerprint -noout 2>/dev/null \ + | cut -d= -f2