gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 14:43:05 26 4
gpt4 key购买 nike

我正在尝试为我的域生成证书。我可以 ping 我的域,但仍然出错。我已将入站防火墙规则添加到我的 digital ocean 服务器以接受 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):

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

最佳答案

你似乎已经自己解决了这个问题。

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

确保您的域地址指向您服务器的 IP 地址。

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

https://www.whatsmydns.net/

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

关于lets-encrypt - certbot 无法验证域和连接被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58044458/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com