8 lines
201 B
Bash
8 lines
201 B
Bash
|
#!/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
|