Problem with Certificate-Renew using certbot


i have a problem with renewing my existing certificate with certbot.

My domain is:
The Problem says my domain has a problem with the dns a/aaaa-record.
but, the domain results in the right IP-Adress. and, if i check my domain in browser, i am at the right server.
my firewall accepts port 443 and 80 to the raspberry-client.
Thank you in Advance!

I ran this command: certbot renew

It produced this output:
certbot renew

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Processing /etc/letsencrypt/renewal/

Cert is due for renewal, auto-renewing…

Plugins selected: Authenticator webroot, Installer None

Renewing an existing certificate

Performing the following challenges:

http-01 challenge for

Waiting for verification…

Cleaning up challenges

Attempting to renew cert ( from /etc/letsencrypt/renewal/ produced an unexpected error: Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from “<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body bgcolor=“white”>\r\n<center><h1>403 Forbidden</h1></center>\r\n<hr><center>”. Skipping.

All renewal attempts failed. The following certs could not be renewed:

/etc/letsencrypt/live/ (failure)

All renewal attempts failed. The following certs could not be renewed:

/etc/letsencrypt/live/ (failure)

1 renew failure(s), 0 parse failure(s)


  • The following errors were reported by the server:


Type: unauthorized

Detail: Invalid response from




To fix these errors, please make sure that your domain name was

entered correctly and the DNS A/AAAA record(s) for that domain

contain(s) the right IP address.

The operating system my web server runs on is (include version): raspbian v9 “stretch”

I can login to a root shell on my machine (yes or no, or I don’t know): yes! i sent “certbot -renew” from my root shell

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.28.0

What does Nginx’s error log file show?

Hi @noomiis

this isn't a DNS problem. Your dns entries are correct:

Host T IP-Address is auth. ∑ Queries ∑ Timeout A yes 1 0
AAAA yes Name Error yes 1 0

Instead, there is an explicit http response

from your server

Server: nginx/1.10.3

You use already webroot

Check the directory permissions of /.well-known/acme-challenge.

If one directory doesn't exist, create both


there a file (file name 1234), then try to load that file via

Checking such a (not existing) file there is now the wrong answer

Visible Content: 403 Forbidden nginx/1.10.3

instead of 404 / Not Found.

Hey Juergen!
Thank you for your reply,

you were right, the .well-known-directory was there, the …/acme-challenge - directory was missing.
i created a file like 1234, and the reply was the same as if i would try to open a file that doesnt exist.

How can i fix the issue?

Thank you very much in Advance!

warm Regards,


That isn't that, what I see.

produces a "forbidden", not a "not found". Check the directory permissions, should be 755.

403 Forbidden errors can have different causes.

Nginx’s error log should say what it is.


Hello Juergen,

they are :frowning: i set them again, but it didnt work :frowning:
but you are right, the error is 403

Hey mnordhoff,

sorry, but… where can i find this log?

sorry for the stupid question.

Thank you in Advance!

Warm Regards,


Typically /var/log/nginx/error.log, but it’s configurable.

can you see anything which helps me?
thank you!

“access forbidden by rule” means there’s something in your Nginx configuration blocking it.

hmm. a bit of googling said i have to “allow all” in nginx-configfile “sites-enabled”. i did, but i didnt work, the error is still the same. i know, this is not a webserver-forum, but… do you have an idea?

thank you in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.