If you use Nagios for monitoring, you can use the check_http plugin for this, e.g. check_http -H <hostname> -C 30,14. That will return a warning status if the cert expires within 30 days and return a critical status if the cert expires within 14 days.