#!/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