openssl show cert:
openssl s_client -showcerts -connect mail.nixcraft.net:443
Connect to a service on ssl:
openssl s_client -connect mail.nixcraft.net:443