Get Remote SSL Certificate From Command Line on Linux February 23, 2011Posted by Tournas Dimitrios in Linux.
Easy way to get the SSL certificate of a server from the command line in Linux. The nice thing about it is that you get the full certificate chain. Nice for troubleshooting issues. After the “-connect”, specify the host and port you want to connect to. TCP port 443 is the default https port.
openssl s_client -connect mail.google.com:443