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!
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With