Check for valid SSL Cert on an SSL/TLS Email Server

Written by James McDonald

September 12, 2019

Method 1 – openssl

#!/bin/bash
SERVERNAME=mail.example.com
printf 'quit\n' | openssl s_client -connect $SERVERNAME:25 -starttls smtp | openssl x509 -enddate -noout

Method 2 – Google Chrome

Run Google Chrome and bypass the ERR_UNSAFE_PORT error by specifying the --explicitly-allowed-ports=465 option on the command line. The following command is for MacOS

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --explicitly-allowed-ports=465

Open the link to the SSL port of the email server. i.e https://mail.example.com:465 And you get a nice GUI displaying the trust chain and expiry date.

Refs:

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...