Command: cat /path/to/certs/my_cert.crt | openssl x509 -noout -enddate Sample output: notAfter=Apr 6 14:23:50 2024 GMT