Nginx Certificate not working

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: map.gamerleiif.de

I ran this command: sudo certbot --nginx

It produced this output:


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

Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: amp.amp-webinterface.de
2: map.gamerleiif.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 2
Requesting a certificate for map.gamerleiif.de

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: map.gamerleiif.de
  Type:   unauthorized
  Detail: 2a01:4f8:d0a:134e::2: Invalid response from http://map.gamerleiif.de/.well-known/acme-challenge/2xfRibePgqMtNlE3WYtJiMy9n6-YKBkpKmkEotua2wU: 404

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.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

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

The operating system my web server runs on is (include version):
Ubuntu 20.04.6 LTS

My hosting provider, if applicable, is:
Hetzner

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 / amp

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

Hi @Zoriot, and welcome to the LE community forum :slight_smile:

There is a difference between the IPv4 and IPv6 replies from your domain:

IPv6

curl -Ii6 map.gamerleiif.de
HTTP/1.1 200 OK
Date: Thu, 15 Feb 2024 01:24:30 GMT
Server: Apache     <<<<<<<<<<<<<<<<<<<<<<<<<
Upgrade: h2c
Connection: Upgrade
Last-Modified: Fri, 14 Apr 2023 15:29:37 GMT
ETag: "168ed-5f94d82503faa"
Accept-Ranges: bytes
Content-Length: 92397     <<<<<<<<<<<<<<<<<<<<<<<<<
Content-Type: text/html

IPv4

curl -Ii4 map.gamerleiif.de
HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu)     <<<<<<<<<<<<<<<<<<<<<<<<<
Date: Thu, 15 Feb 2024 01:24:37 GMT
Content-Type: text/html
Content-Length: 612     <<<<<<<<<<<<<<<<<<<<<<<<<
Last-Modified: Fri, 04 Mar 2022 22:29:40 GMT
Connection: keep-alive
ETag: "622292d4-264"
Accept-Ranges: bytes
5 Likes

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