Check SSL/TLS Certificates
Check the expiration date of an SSL or TLS certificate
Open the Terminal application and then run the following command:
Finding SSL certificate expiration date from a PEM-encoded certificate file
The syntax is as follows query the certificate file for when the TLS/SSL certification will expire
We can also check if the certificate expires within the given timeframe. For example, find out if the TLS/SSL certificate expires within next 7 days (604800 seconds):
Last updated