nixCraft published a tutorial about how to check TLS/SSL certificate expiration date from command-line.
How to check TLS/SSL certificate expiration date from command-line
Explains how to check the TLS/SSL certificate expiration date from Linux or Unix CLI and send an email alert using a simple script.
How to check TLS/SSL certificate expiration date from command-line - nixCraft