add script "ssl_get_fingerprint.sh"

This commit is contained in:
maxime 2024-05-12 11:44:01 +03:00
parent d27ebf06c0
commit 674510d075
Signed by untrusted user who does not match committer: masq
GPG Key ID: A6BA8DA755BB4490
1 changed files with 7 additions and 0 deletions

7
ssl_get_fingerprint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/bash
# Usage : ./ssl_get_fingerprint.sh URL
openssl s_client -connect $1:443 -showcerts </dev/null 2>/dev/null \
| openssl x509 -sha256 -fingerprint -noout 2>/dev/null \
| cut -d= -f2