
我有一台運行 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 位址。我不確定它最終如何指向不同的地址。