scripts/ssl_get_fingerprint.sh

8 lines
201 B
Bash
Raw Normal View History

2024-05-12 10:44:01 +02:00
#!/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