view SSL certificate on ports 587, 25, 110, 465, 995, 143, 993
===

How can I view the SSL certificate details that is being used on ports 587, 25, 110, 465, 995, 143 & 993

I need to check which domain name is being used to secure these ports.

I've search here and on google but can't find anything!