As discussed in idea Alert when SSL key expires this script prints the expiry date of the server certificates. Hosts can be either put in the script or supplied as parameters.
The expiry dates of all hosts are printed out in order.