openssl get ssl certificate from commandline bash 2018 W35 Mi 29. August mister echo | openssl s_client -connect www.google.com:443 -servername www.google.com 2>/dev/null | awk ‚/Certificate chain/,/—/‘