Certbot 问题:证书续订期间“未找到有效的 A 记录”

问题描述 投票:0回答:1

我在尝试使用 --nginx 选项为我的域续订 SSL 证书时遇到了 Certbot 问题。我收到的错误消息如下:

$ sudo certbot --nginx -d your_domain.com -d www.your_domain.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for your_domain.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. your_domain.com (http-01): urn:ietf:params:acme:error:dns :: no valid A records found for your_domain.com; no valid AAAA records found for your_domain.com

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

   Domain: your_domain.com
   Type:   None
   Detail: no valid A records found for your_domain.com; no valid
   AAAA records found for your_domain.com
$

我不确定到底要寻找什么来修复此错误。我正在使用 Lindo Akamai 和 A/AAAA 记录 显示正确的 IP 地址,并且该网站在没有 Http 的情况下也可以正常工作。我正在将 Nginx 和 Gunicorn 用于 Django 项目。

我的问题如何修复每次运行时的错误

sudo certbot --nginx -d your_domain.com -d www.your_domain.com

django nginx ssl gunicorn linode
1个回答
0
投票

我也有同样的问题。 这里, sudo certbot --nginx -d your_domain.com -d www.your_domain.com 您正在添加 your_domain.comwww.your_domain.com(两个条目,一个带有 www.,一个没有 www.)

错误提示 your_domain.com 没有 A 记录(不含 www.) 所以只需添加新的 A 记录而无需 (www.) 它对我有用

© www.soinside.com 2019 - 2024. All rights reserved.