Please fill out the fields below so we can help you better.
My domain is: http://repcleaner.net
I ran this command:
sudo certbot renew
It produced this output:
The following certs are not due for renewal yet:
/etc/letsencrypt/live/repcleaner.net-0001/fullchain.pem (skipped)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/blog.repcleaner.net/fullchain.pem (failure)
/etc/letsencrypt/live/repcleaner.net/fullchain.pem (failure)
2 renew failure(s), 0 parse failure(s)
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
My operating system is (include version):
MacOSX
My web server is (include version):
nginx, Centos 7
My hosting provider, if applicable, is:
digital ocean
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
I thought i had auto renew setup and everything functioning correctly. I noticed my sites giving off a security warning this week and this seems to be the issue
You could run certbot certificates to see whether the repcleaner.net-0001 certificate is an accidental overlap with one of your other certificates and if, perhaps, you no longer need one of them.
Apart from that, you could look up your webroot directories in /etc/letsencrypt/renewal/blog.repcleaner.net.conf and /etc/letsencrypt/renewal/repcleaner.net.conf to see if ① you agree that the webroot directories are actually where your site content is served from and ② if making test files under those directories allows the test files to appear in the corresponding place on your web site.
I know the root for my site files is located at /var/www/repcleaner.net/html
should I change all the paths from /usr/share/nginx/html to the directory with my site content?
Could this be what is preventing it from renewing properly?
This solved the issue for the repcleaner.net domain! Everything is live for that one and the SSL cert has been renewed, so thanks for the help there
However, the blog.repcleaner.net domain is giving me the same error and I can’t seem to figure out why, the .conf settings are now updated the same as the main domain.
It is returning this error when I try running sudo certbot renew
The following certs are not due for renewal yet:
/etc/letsencrypt/live/repcleaner.net-0001/fullchain.pem (skipped)
/etc/letsencrypt/live/repcleaner.net/fullchain.pem (skipped)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/blog.repcleaner.net/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
I’m sorry, I didn’t notice some of the details that you posted.
You’re getting a 403 (forbidden) error, not a 404 (not found) error. Therefore, your webroot may be set correctly but your web server may be configured to forbid access to /var/www/blog.repcleaner.net/html/.well-known/acme-challenge for some reason. You should look at your web server configuration to see if there’s any reason why this access would be forbidden.
You can also create a file /var/www/blog.repcleaner.net/html/.well-known/acme-challenge/test.txt and see if you can see it with a web browser at http://blog.repcleaner.net/.well-known/acme-challenge/test.txt. If you get a 404 error, your webroot is probably specified incorrectly; if you get a 403 error, you can investigate what to change in the web server configuration to allow this file to be accessed.
The .well-known folder is empty on my server, I have checked permissions and they are 774, and I am noticing that it will not let me upload the test.html file into the folder as I do not have permissions. So I have changed the permissions via sudo chmod 777 -R /var/www/blog.repcleaner.net/.well-known
Now this has worked I ran the cert and it passed!
but… when I view the page, It is returning 502 bad gateway!
@bmw, can you understand a scenario in which certbot renew with webroot fails the challenge and then changing the permissions on /.well-known/acme-challenge makes it succeed? I would think we would get IOError: [Errno 13] in this case, rather than Certbot thinking that it's set up the challenge properly...
This is probably not directly related to your certificate, even though a misconfiguration might have been triggered by something to do with the certificate configuration. If you look in /var/log/apache2 or a similar directory, you should be able to find an Apache error log which may explain in more detail why your site isn't working.
@schoen, so strange… the site was functioning properly prior to the past cert expiring.
Now i’ve just renewed it and the site is now providing a 502 bad gateway…
Maybe it has something to do with my nginx conf files, but nothing should be different in those than before… i’ll update once I figure it out.
@schoen
Just an update, here is my nginx conf file located within /etc/nginx/conf.d/ for the blog incase you might see something blatantly obvious that I have missed:
@schoen, testing at least the simple cases, Certbot errors out with an IOError or OSError if the webroot plugin can’t create the necessary files or directories. I have seen this problem though when the webserver has insufficient permissions to access the challenge files.