【问题标题】:Certbot Unable to find a Route53 hosted zone for _acme-challenge.subdomain.domain.comCertbot 找不到 _acme-challenge.subdomain.domain.com 的 Route53 托管区域
【发布时间】:2020-06-16 19:13:54
【问题描述】:

我想使用 certbot 为指向我的域的子域创建 SSL 证书。但是在生成下面的命令时,我收到了这个错误:certbot.errors.PluginError: Unable to find a Route53 hosted zone for _acme-challenge.hello.example.com

命令如下:

sudo certbot certonly -d hello.example.com --dns-route53 -n --agree-tos --non-interactive --server https://acme-v02.api.letsencrypt.org/directory -i apache

主子域:my.subdomain.com

其他子域:

  1. hello.example.com -> CNAME 到 secure.subdomain.com
  2. world.another-example.com -> CNAME 到 secure.subdomain.com

因此访问这些子域应该会显示带有相应 SSL 证书的 my.subdomain.com 网页。

【问题讨论】:

    标签: linux ssl amazon-route53 lets-encrypt certbot


    【解决方案1】:
    1. 检查 ~/.aws/credentials 文件 - 它是否包含具有此托管区域的特定 aws 帐户的凭据
    2. 它应该是默认配置文件。例如
    [default]
    aws_access_key_id = your_aws_id_hosted_zone
    aws_secret_access_key = your_aws_secret_hosted_zone
    

    【讨论】:

      【解决方案2】:

      当您拥有有效的 AWS 凭证,但您的域未在该 AWS 账户的 Route53 中列出时,通常会发生此错误。

      【讨论】:

      • 那么如何解决呢?
      • @Huan 只需将您的域转移到您的正确 aws 帐户
      • 如果我不将域转移到AWS,有什么办法可以解决吗?
      猜你喜欢
      • 2015-12-06
      • 2018-07-09
      • 1970-01-01
      • 1970-01-01
      • 2019-10-13
      • 1970-01-01
      • 2018-03-08
      • 1970-01-01
      • 2017-11-24
      相关资源
      最近更新 更多