【发布时间】:2017-12-07 02:34:01
【问题描述】:
我在尝试运行命令时遇到了这个奇怪的letsencrypt错误
$ certbot certonly --standalone --email example@gmail.com --agree-tos -n -d trumporate.com,www.trumporate.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for trumporate.com
tls-sni-01 challenge for www.trumporate.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. trumporate.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Timeout, www.trumporate.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Timeout
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: trumporate.com
Type: connection
Detail: Timeout
Domain: www.trumporate.com
Type: connection
Detail: Timeout
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
现在我已经使用
生成了文件dhparam
$ sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
这是我当前的 nginx 配置文件
$ cat /etc/nginx/sites-available/trumporate
server {
listen 80;
server_name trumporate.com www.trumporate.com;
location / {
include proxy_params;
proxy_redirect off;
proxy_pass http://127.0.0.1:5000;
}
}
不知道我哪里错了。 trumporate.com 在我运行 certbot 的这个虚拟机上是否可以解析?
停止nginx 并再次运行它,给出了同样的错误
我已经通过 route53 注册了域。 它有 2 条 A 类记录指向附加到 ec2 盒子的弹性 IP。 一个用于 www 版本,一个没有它,并且有 4 条 NS 记录和一条 SOA 记录,我认为在创建托管区域时默认存在这些记录
【问题讨论】:
标签: ubuntu nginx amazon-ec2 ssl-certificate lets-encrypt