openssl s_client -connect www.example.com:443 >>/tmp/cert-tmp.crt ^C openssl x509 -in /tmp/cert-tmp.crt -text -noout rm -i /tmp/cert-tmp.crt