这是我第一次构建服务器并将其托管到AWS EC2。在运行命令sudo certbot certonly --standalone
或sudo certbot certonly --webroot
时,我收到以下错误
Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: matthieuxroger.com
Type: unauthorized
Detail: Invalid response from http://matthieuxroger.com/.well-known/acme-challenge/nWRAFCcRUeVxZ0C5YtRg_9bihG2YQeqacUcGjxdCMzg [18.205.22.32]: "<!DOCTYPE html>\n<html>\n <head>\n <title>Matthieux Roger</title>\n <link rel='stylesheet' href='/stylesheets/style.css' />\n "
我在运行在亚马逊EC2上的ubuntu20上使用nodejs。任何帮助都会得到确认。
发布于 2021-09-26 00:53:20
当使用Certbot的webroot
方法时,会启动一个web服务器来为单个文件提供服务,因此让我们加密可以验证域中服务器的所有权。但是当LE访问你的域时,它得到了一个不同的服务器,该服务器服务于404页面。您的域的DNS似乎没有指向正在请求证书的EC2实例。(或者它可能已经更新了,但只是还没有传播)。您需要更新DNS记录,使其指向请求certbot证书的服务器。或者,您可以使用不需要运行服务器来证明所有权的不同质询类型(如dns-01
)。
https://stackoverflow.com/questions/69330149
复制相似问题