function cert-deets() { openssl s_client -connect "$1" -port 443 2>/dev/null <<< Q | openssl x509 -noout -subject -ext subjectAltName -dates; } && export -f cert-deets