How can I check/see the certificate used by a Dovecot server

Hi all,

Perhaps not quite Dovecot-specific, but I would like to see the details of the SSL-certificate in use by a Dovecot server I connect to. Programs like Outlook show the details of the certificate when its unable to verify it, but how can I see the details of a certificate that can be verified?