【发布时间】:2018-01-20 12:24:19
【问题描述】:
我正在尝试安装 ssl 证书,以便在我的域和子域中进行加密。 我在我的域上成功安装了 ssl 证书,但在我的子域上没有成功 我使用下一个命令
certbot certonly --webroot -w /var/www/sub-domain/maxime-mazet.fr/owncloud/ -d cloud.maxime-mazet.fr
/var/www/sub-domain/maxime-mazet.fr/owncloud 有我的代码的文件夹。
cloud.maxime-mazet.fr 是我的子域。
我的域 maxime-mazet.fr 是 ovh 的主机。 对于 cloud.maxime-mazet.fr,我创建了带有服务器 IP 的输入 A。
我的域 (maxime-mazet.fr) 没有错误,但我的子域 (cloud.maxime-mazet.fr) 错误是
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for cloud.maxime-mazet.fr
Using the webroot path /var/www/sub-domain/maxime-mazet.fr/owncloud for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. cloud.maxime-mazet.fr (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for cloud.maxime-mazet.fr
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: cloud.maxime-mazet.fr
Type: connection
Detail: DNS problem: NXDOMAIN looking up A for
cloud.maxime-mazet.fr
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.
接下来的图片是我的域和子域的 A 面板
感谢您的帮助
【问题讨论】:
标签: ssl nginx dns lets-encrypt