Get this error when trying to generate certs. on raspberry pi

My domain is:
lillefar.com

I ran this command:
sudo certbot --nginx

It produced this output:

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: www.lillefar.com
  Type:   dns
  Detail: DNS problem: NXDOMAIN looking up A for www.lillefar.com - check that a DNS record exists for this domain

  Domain: lillefar.com
  Type:   unauthorized
  Detail: Invalid response from http://lillefar.com/.well-known/acme-challenge/KTyTigfEz7n-LCf51qY5gv6tTZOAU8ubCoXKefoZNXA [2a02:4780:8:409:0:18fd:808f:7]: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>openresty</cente"

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

My web server is (include version):
nginx/1.18.0

The operating system my web server runs on is (include version):
Raspberry os lite (debian)

My hosting provider, if applicable, is:
Not applicable

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

The version of my client is:
certbot 1.22.0

Full log file
https://u.lillefar.dk/yU0XUn

Your DNS zone doesn't have the www subdomain specified. Only the apex domain lillefar.com has an A record.

3 Likes

Also, your DNS for lillefar.com has one A and one AAAA record but the servers respond differently so probably one of them is not correct. See

Let's Encrypt will prefer the IPv6 IP when present

3 Likes

Thanks for helping everyone. MultipleIPAddressDiscrepancy was the issue :ok_hand:

1 Like

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