我有一台运行 Apache Tomcat 的 Fedora 34 服务器。我拥有来自 Let's Encrypt 的证书。我使用 certbot 安装它们(就像一个人做的那样),一切运行良好。现在,当我去更新证书时,我收到以下错误:
[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]#
更多详细信息:我有一个从 Apache Web 服务器到 Tomcat 的重定向 (mod_rewrite) 正在运行。我在故障排除期间暂时将其关闭。
答案1
我们找到了答案!这是一条错误的 DNS AAAA(ipv6)记录。我们修复了这个问题,然后 certbot 成功运行了!我们将 AAAA 记录指向服务器上 ifconfig 上显示的 ipv6 地址。我不确定它为什么最终指向了不同的地址。