Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems: Domain: 1.xialing.icu Type: unauthorized Detail: 【ipv6 地址】: Invalid response from http://1.xialing.icu/.well-known/acme-challenge/XXD52kwolPjOLvUbELt9FrNr2FM
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains er and that it is accessible from the internet.
Certbot failed to authenticate some domains (authenticator: dns-cloudflare). The Certificate Authority reported these problems: Domain: tongji.xialing.icu Type: dns Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.tongji.xialing.icu - check that a DNS record exists for this domain
Domain: www.xialing.icu Type: dns Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.www.xialing.icu - check that a DNS record exists for this domain
Domain: xialing.icu Type: dns Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.xialing.icu - check that a DNS record exists for this domain
Hint: The Certificate Authority failed to verify the DNS TXT records created by --dns-cloudflare. Ensure the above domains are hosted by this DNS provider, or try increasing --dns-cloudflare-propagation-seconds (currently 10 seconds).
Hint 中提示的很清晰了,可以尝试增大等待时间,对我来说,25 秒可行。
最后返回的成功信息是:
1 2 3 4 5 6
Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/www.xialing.icu/fullchain.pem Key is saved at: /etc/letsencrypt/live/www.xialing.icu/privkey.pem This certificate expires on 2025-06-25. These files will be updated when the certificate renews. Certbot has set up a scheduled task to automatically renew this certificate in the background.
配置 Nginx
接下来需要在 nginx 中配置使用的证书:
1 2 3 4 5 6 7 8 9 10 11 12
server { listen443 ssl; server_name example.com www.example.com;