Apache Let’s Encrypt Certbot Challenge unter Linux fehlgeschlagen

Apache Let’s Encrypt Certbot Challenge unter Linux fehlgeschlagen

Ich habe einen Fedora 34-Server, auf dem Apache Tomcat läuft. Ich hatte funktionierende Zertifikate von Let’s Encrypt. Ich habe sie mit certbot installiert (wie man das macht) und alles hat gut funktioniert. Wenn ich jetzt meine Zertifikate erneuern will, erhalte ich die folgende Fehlermeldung:

[root@app myname]# certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for example.com
Performing the following challenges:
http-01 challenge for example.com
Waiting for verification...
Challenge failed for domain example.com
http-01 challenge for example.com
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
- The following errors were reported by the server:

   Domain: example.com
   Type:   unauthorized
   Detail: Invalid response from
   http://example.com/.well-known/acme-challenge/bRtftQXeDygjye2u-1c2O1I63A2PoSPMNqclYAVivzg
   [ipv6address]: "html\r\nheadtitle404 Not
   Found/title/head\r\nbody\r\ncenterh1404 Not
   Found/h1/center\r\nhrcenteropenresty/cente"

   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.
[root@app myname]#

Noch ein paar Details: Ich hatte eine funktionierende Umleitung (mod_rewrite) vom Apache-Webserver zu Tomcat. Diese habe ich während der Fehlerbehebung vorübergehend deaktiviert.

Antwort1

Wir haben es herausgefunden! Es war ein fehlerhafter DNS AAAA (IPv6)-Eintrag. Wir haben das behoben und dann lief Certbot erfolgreich! Wir haben den AAAA-Eintrag auf die IPv6-Adresse gerichtet, die auf ifconfig auf dem Server angezeigt wurde. Ich bin mir nicht sicher, wie es dazu kam, dass er auf eine andere Adresse verwies.

verwandte Informationen