certbot无法验证域和连接被拒绝

问题描述 投票:0回答:1

我正在尝试为我的域生成证书。我可以ping我的域,但仍然出现错误。我已将入站防火墙规则添加到我的数字海洋服务器中,以接受ipv4和ipv6上的端口80。不知道出什么问题了。 [注意:我的nginx服务器未运行,因为我无法获得证书]

https://community.letsencrypt.org/t/invalid-response-404-nginx-docker-container/102525

我的域名是:www.1040nra.com

我运行了此命令:sudo certbot certonly --staging --webroot -w / root / dt-app-data / -d 1040nra.com -d www.1040nra.com

它产生了此输出:

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for 1040nra.com
http-01 challenge for www.1040nra.com
Using the webroot path /root/dt-app-data for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. 1040nra.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://1040nra.com/.well-known/acme-challenge/22AD-KFmF62z373CPiUKzk6dlr-0s5wMOmnmrziMqd4: Connection refused, www.1040nra.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.1040nra.com/.well-known/acme-challenge/ba-jjDhBUZJ9fHLofGfDYSVV5a-ETlX26A64A-2Yu0s: Connection refused

IMPORTANT NOTES:

The following errors were reported by the server:

Domain: 1040nra.com
Type: connection
Detail: Fetching
http://1040nra.com/.well-known/acme-challenge/22AD-KFmF62z373CPiUKzk6dlr-0s5wMOmnmrziMqd4:
Connection refused

Domain: www.1040nra.com
Type: connection
Detail: Fetching
http://www.1040nra.com/.well-known/acme-challenge/ba-jjDhBUZJ9fHLofGfDYSVV5a-ETlX26A64A-2Yu0s:
Connection refused

To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA 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.
My web server is (include version):

我的Web服务器运行的操作系统是(包括版本):ubuntu 18.04

lets-encrypt certbot
1个回答
0
投票

您似乎已经解决了问题。

这是因为certbot域无法验证DNS A记录。

确保您的域名地址已定向到服务器的IP地址。

如果您最近一次更改了dns,则可能需要一些时间才能删除旧的IP地址。

https://www.whatsmydns.net/

在这里检查,应该只有一个IP地址,这应该是您服务器的IP地址。

© www.soinside.com 2019 - 2024. All rights reserved.