dotfiles/.bashrc.d/openssl

2 lines
168 B
Plaintext
Raw Normal View History

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