#!/bin/bash : ${HOST:=irc.tilde.chat} : ${PORT:=6697} openssl s_client -showcerts -connect ${HOST}:${PORT} 2>/dev/null | \ openssl x509 -noout -fingerprint -sha512 -inform pem | \ cut -d'=' -f2 | sed 's/://g'