How do I show a certificate's detail in OS X Mail (Lion) I run my own mail servers and have them set up to support SSL connections over IMAP/SMTP. They are GoDaddy SSL certificates and are recognized by Mail and IOS since the root authority (godaddy) is trusted. 

However, I suspected that I am coming up on my expiration for the SSL certificate on one of my mail servers, so I want to look at the certificate's expiry date - I can't find where to do this in Mail and I can't find a certificate for my server in key chain. I suspect it's not there since there is nothing to add - the root certificate (godaddy) is there, so there is no reason to add my child certificate. 

How do I look at SSL certificate attributes in OS X? Where can I find my certificate? In Thunderbird you just click on server > security and hit certificates.
This is not in Mail, I know of no way to do that, but this does not require any new software.  In Terminal:

echo ^d|openssl s_client -connect host:port 2&gt;/dev/null |  sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' |  openssl x509 -noout -subject -dates