echo | openssl s_client -connect example.com:443 -showcerts > cert.pem