Tom*_*Tom 4 apache ubuntu amazon-web-services lets-encrypt certbot
我在运行 Apache 的 AWS EC2 实例上有一个 Ubuntu 20.04 服务器,我正在尝试使用 certbot 获取证书,但是我在获取凭据时遇到了问题。下面是我运行的命令,后面是错误输出:
user@address:~$ sudo certbot certonly --dns-route53 --dns-route53-propagation-seconds 30 -d mydomain.com -d *.mydomain.com -i apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-route53, Installer apache
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for mydomain.com
dns-01 challenge for mydomain.com
Cleaning up challenges
Unable to locate credentials
To use certbot-dns-route53, configure credentials as described at https://boto3.readthedocs.io/en/latest/guide/configuration.html#best-practices-for-configuring-credentials and add the necessary permissions for Route53 access.
Run Code Online (Sandbox Code Playgroud)
我遵循了以下指南:
并选择使用环境变量设置凭据:
$ export AWS_ACCESS_KEY_ID=<id>
$ export AWS_SECRET_ACCESS_KEY=<secret>
Run Code Online (Sandbox Code Playgroud)
当我使用$ printenv AWS_ACCESS_KEY_ID并$ printenv AWS_SECRET_ACCESS_KEY在屏幕上显示凭据时,我不明白为什么 certbot 无法找到它们。
有任何想法吗?
| 归档时间: |
|
| 查看次数: |
1299 次 |
| 最近记录: |