Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 416
user1398287 Avatar asked Jul 31 '12 10:07

user1398287


People also ask

How do I view SSL certificate details?

For most browsers, look to see if a site URL begins with “https,” which indicates it has an SSL certificate. Then click on the padlock icon in the address bar to view the certificate information.

How do I view SSL certificates on each browser?

First, go to any SSL-enabled website and tap on the padlock icon next to the URL. Now tap on the “Details” link. A popup will be on your screen that includes CA information along with security protocol and hashing algorithm used. Tap on Certificate Information to view more details about the certificate.


1 Answers

Use OpenSSL (installed by default on almost all Linux distributions, you can also get a binary build for Windows from Shining Light Productions):

openssl s_client -connect host:port -servername host [-starttls protocol] 

where host is the host you want to connect to and port is the port number.

-servername host will include the host name in the TLS handshake (via the Server Name Indication extension), to allow servers hosting multiple protected resources on the same IP to choose the correct certificate.

The -starttls protocol part is needed only if the server you are checking starts a plain text session by default and switches to SSL/TLS later, when the client requests it (in this case, protocol must be one of smtp, pop3, imap, ftp, xmpp); you should check if your server configuration requires the switch and include the command line option accordingly.

like image 115
Alessandro Menti Avatar answered Oct 09 '22 03:10

Alessandro Menti