1 2 3 4 5
#!/bin/bash # usage: httpstest <domain> openssl s_client -servername $1 -connect $1:${2:-443} </dev/null