-
-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Letsencrypt auto renewal instructions do not work on centos 7 #478
Comments
This might be an upstream bug, as you should be able to renew with nginx running, and just affecting a reload after completion (To prevent downtime). |
Regardless centos 7 users should be made aware that the given cron job will not function as it would on other distros within the documentation until its fixed. |
Pull request waiting approval. |
@Laurelai can you describe the bug for us? I think it's likely that this is actually a problem with the way you originally set up certbot. did you originally register using the |
I dont remember. |
you can check the renewal configuration file at |
Ah looks like it was standalone |
Okay, closing the issue then since the production guide specifically specifies that you should use webroot to avoid this issue. You can reconfigure LE to use webroot by re-running the command from the production guide. |
The commands put in the cron job
"#!/usr/bin/env bash
letsencrypt renew
systemctl reload nginx"
Do not work as the script will fail to renew when nginx is running.
Should be
#!/usr/bin/env bash
letsencrypt renew --pre-hook "service nginx stop" --post-hook "service nginx start"
The text was updated successfully, but these errors were encountered: