Skip to content
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

Certbot cannot renew cert due to standalone mode with NGINX running #105

Open
ASoTNetworks opened this issue Dec 15, 2019 · 3 comments
Open

Comments

@ASoTNetworks
Copy link
Member

Currently certbot is using standalone when obtaining new SSL certs and the crontab calls certbot without first stopping NGINX resulting in certbot cannot bind to port 80 and cannot validate the server.

A fix is to stop NGINX before calling certbot:
30 2 * * 1 root /usr/bin/systemctl stop nginx ; /usr/bin/certbot renew >> /var/log/letsencrypt/letsencrypt.log ; /usr/bin/systemctl start nginx

Another way is to have certbot use webroot so NGINX can stay running and reloaded after.

@benhylau benhylau added this to the Beyond Our Networks milestone Apr 11, 2020
@darkdrgn2k
Copy link
Contributor

When issuing certificates i use this command line

certbot certonly --email [email protected] --webroot -w /var/www/html -n --agree-tos --domains $1 $2 $3 $4

I beleave there is a renew version of this as well

@benhylau
Copy link
Member

I received this question by email:

I was able to renew the RTMP server because I know what it is running (NGINX), but am working to find what the IPFS Mirror is doing that is stopping port 80 traffic. I figured that the site was working off of port 80 so I stopped it and was able to renew for the RTMP Server side but the IPFS Mirror is getting an error still. Can you help me out with potential quick fix to let the renewal take place?

Maybe @darkdrgn2k @ASoTNetworks knows how to address?

@toplevelnick
Copy link

Hey guys. So I found that if you stop NGINX on both RTMP and IPFS Mirror then run , certbot renew. It will renew fine. Just remember to start up the server once it is renewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants