Certbot找不到_acme-challenge.subdomain.domain.com的Route53托管区域



我想使用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

因此,访问这些子域应显示my.subdomain.com网页及其相应的SSL证书。

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

  1. 检查~/.aws/credentials文件-它是否包含此托管区域中特定aws帐户的凭据
  2. 它应该是默认配置文件。e.x
[default]
aws_access_key_id = your_aws_id_hosted_zone
aws_secret_access_key = your_aws_secret_hosted_zone

最新更新