Questions

Forum Navigation
Please to create posts and topics.

Let's Encrypt - How to show how many days certificate you have?

With the automated system that Let's Encrypt has developed to use and maintain SSL certificates for web servers, how to check, using certbot utility (but not only), SSL certificate expiration date?

To check the expiration date and time of a Let's Encrypt certificate we can use OpenSSL command on Linux systems:

openssl x509 -noout -dates -in /etc/letsencrypt/live/yourdomain.tld/cert.pem

Where "yourdomain.tld" need to be replaced with the actual website already configured with SSL (Let's Encrypt).

Alternatively, we can use the certbot utility as follow:

certbot certificates

This command will output every configured SSL certificates enabled using certbot on the system, for example:

Found the following certs:
Certificate Name: example.com
Domains: example.com, http://www.example.com
Expiry Date: 2017-02-19 19:53:00+00:00 (VALID: 30 days)
Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem