nginx Certbot的问题:在证书更新期间“未找到有效的A记录”

ftf50wuq  于 2023-11-17  发布在  Nginx
关注(0)|答案(1)|浏览(541)

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

  1. $ sudo certbot --nginx -d your_domain.com -d www.your_domain.com
  2. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  3. Plugins selected: Authenticator nginx, Installer nginx
  4. Obtaining a new certificate
  5. Performing the following challenges:
  6. http-01 challenge for your_domain.com
  7. Waiting for verification...
  8. Cleaning up challenges
  9. 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
  10. IMPORTANT NOTES:
  11. - The following errors were reported by the server:
  12. Domain: your_domain.com
  13. Type: None
  14. Detail: no valid A records found for your_domain.com; no valid
  15. AAAA records found for your_domain.com
  16. $

字符串
我不知道该找什么来修复这个错误。我使用的是Lindo Akamai,A/AAAA记录显示了正确的IP地址,而且网站在没有HTTP的情况下也能正常工作。我正在使用Nginx和Gunicorn进行Django项目。
我的问题是如何修复每次运行sudo certbot --nginx -d your_domain.com -d www.your_domain.com时的错误

5jdjgkvh

5jdjgkvh1#

我也遇到了同样的问题。在这里,sudo certbot --nginx -d your_domain.com -d www.your_domain.com你正在添加your_domain.comwww.your_domain.com(两个条目,一个有www.,一个没有www.)
错误是说,没有A记录为your_domain.com(没有www.),所以只是添加新的A记录没有www.它为我工作(使用谷歌域名服务)编辑:如果您的DNS/托管服务提供商不支持没有www.的实体,您可以添加一个条目只有'@'(这通常意味着域的根)。它为我工作在justhost.com

相关问题