echo | openssl s_client -servername www.example.com -connect www.example.com:443 2>/dev/null | openssl x509 -text