How to renew an expired let’s encrypt certificate

lets-encrypt

I didn't notice my Let's Encrypt certificate had expired. I would like to renew it.

I typed the command below

certbot renew

But I got error below.

# certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/www.algebra.live.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Attempting to renew cert (www.algebra.live) from     /etc/letsencrypt/renewal/www.algebra.live.conf produced an unexpected error:     ('Connection aborted.', gaierror(-2, 'Name or service not known')). Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/www.algebra.live/fullchain.pem (failure)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/www.algebra.live/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -     -
1 renew failure(s), 0 parse failure(s)

How can I renew this certificate?

Best Answer

You can't renew a certificate for a hostname that does not have an address record in the DNS.

Host www.algebra.live not found: 3(NXDOMAIN)

You need to edit your DNS records and add the appropriate address records for this name.


In addition, your version of certbot appears to be trying to do the TLS-SNI-01 challenge, which isn't allowed anymore. You need to update certbot before trying again.

Related Topic