From 674510d0753b9a2f36d777363732ebac83f370e0 Mon Sep 17 00:00:00 2001 From: maxime Date: Sun, 12 May 2024 11:44:01 +0300 Subject: [PATCH] add script "ssl_get_fingerprint.sh" --- ssl_get_fingerprint.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 ssl_get_fingerprint.sh 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