Linoxide published a tutorial about how to check the TLS/SSL expiration date using OpenSSL.
How to Check TLS/SSL Expiration Date Using OpenSSL
This tutorial shows how to check the expiration date of an SSL/TLS certificate using OpenSSL from a live website, self-signed certificate, .p12 file, and pem certificate file.