I ran this command:
certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start"
It produced this output:
The following error was encountered:
[Errno 13] Permission denied: ‘/var/log/letsencrypt’
Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.
I Ran The Same Command as root user:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not yet due for renewal
The following certs are not due for renewal yet:
/etc/letsencrypt/live/benrothman.org/fullchain.pem expires on 2019-09-11 (skipped)
No renewals were attempted.
No hooks were run.
It looks like
certbot is saying that nothing needs to be renewed, but obviously the certificate does need to be renewed because when I go to the site the certificate is invalid because it expired. Do I force it somehow?