Cannot renew Let's Encrypt Certificate

No, not yet. The --dry-run is just a test.

To get a fresh cert and update the renewal profile do the following:

sudo certbot certonly --webroot -w /var/www/chiuer.com -d chiuer.com -d www.chiuer.com --deploy-hook "sudo systemctl reload nginx"

The --deploy-hook is the command to reload nginx. I used the common Ubuntu command in the example but change it if you need to for your system.

Once that works you can test the renewal with

sudo certbot renew --dry-run

If that works you are all set :slight_smile:

2 Likes