openssl s_client -connect $1:443 < /dev/null 2>/dev/null \
  | openssl x509 -sha256  -in /dev/stdin
  # | sed 's/.*=//'