I received an e-mail saying that my certificate is about to expire. I tried a manual renewal however getting the below error.
Because of the contents i am hosting (for personal/private use only) i don’t want to temporarily switch off http authentication.
Is there a way to add a “certbot” user for example with a password or another way so that the certificate can be renewed while http authentication is still enabled?
Please let me know if more information is needed e.g. nginx configuration and i can add this to the post. By default i have port 80 blocked since this is forwarded to port 443 by nginx. For the purpose of renewing the certificate i opened port 80 but since it’s insecure i have now closed it again.
Regards
Kasper
My domain is:
I ran this command:
kasper@Servert:/opt/certbot$ sudo ./certbot-auto renew
It produced this output:
Attempting to renew cert (servert.homelinuxserver.org) from /etc/letsencrypt/renewal/servert.homelinuxserver.org.conf produced an unexpected error: Failed authorization procedure. servert.homelinuxserver.org (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://servert.homelinuxserver.org/.well-known/acme-challenge/Q28ORfSyv23CwvMreuV9aPRsQXiZF-nRXxBv8IYH50c: "
401 Authorization Required401 Authorization Required</". Skipping.
My web server is (include version):
nginx version: nginx/1.12.2
The operating system my web server runs on is (include version):
Linux Servert 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64
My hosting provider, if applicable, is:
N/A home server
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes (sudo enabled account)
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):no