Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

How to view the expiry date of an ssl certificate on crt file

openssl x509 -noout -in -dates

notBefore=Aug 21 16:43:10 2011 GMT
notAfter=Aug 21 16:43:10 2014 GMT

How to view the expiry date of an ssl certificate on domain

openssl s_client -connect | openssl x509 -text

[You would see this section before public key Fingreprint]
Not Before: Jan 29 00:00:00 2010 GMT
Not After : Jan 28 23:59:59 2014 GMT

I came across Very nice script provided by Matty, which is available at
and this script does exactly what you would be looking for.

SSL Checker

Using this script you could get verity of options where simply you can create a list of domain inside a file and read file . Here is this ssl_checker script, ssl_check.txt is the file which contains all those domain i want to check and is my email address where i want to get notified, -f is option for file read and -q is quite -x is time if less than 60 it will notify me in given email.

/bin/bash /home/tikejhya/bin/ -a -f /home/tikejhya/bin/ssl_check.txt -q -x 60 -e