繁体   English   中英

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

[英]Certbot Unable to find a Route53 hosted zone for _acme-challenge.subdomain.domain.com

我想使用 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域: my.subdomain.com

其他子域:

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

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM