ssl - DNS NXDOMAIN 错误命令 certbot

标签 ssl nginx dns lets-encrypt

我正在尝试安装一个 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.

下一张图是我的域名和子域名的面板

I can't post a image I don't have 10 reputation but 8

谢谢你的帮助

最佳答案

ns13.ovh.netdns13.ovh.net 似乎不是您域名的权威,因为它们没有正确回复对它的查询。您首先需要解决该问题。询问 OVH 它们是否确实是用于您的域的正确主机。由于您最近似乎刚刚对域名进行了一些更改,您可能只需要稍等片刻即可解决问题。

查看 https://www.zonemaster.net/ 以对您的区域进行测试。在一切正常之前,不要玩 Let's Encrypt。

关于ssl - DNS NXDOMAIN 错误命令 certbot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48356095/

相关文章:

ubuntu - 无法通过公网 IP 访问 EC2 实例

apache - Firefox 中的 SSL 证书警告

python - 使用 nginx 作为反向代理将 http 路由到 https

SSL协议(protocol)格式版本兼容性(报文格式versino VS加密版本)

ruby - 在 Windows 上的 ruby​​ 中获取 SSL 错误

php - nginx 从 https 排除路径

php - .htaccess 重定向影响子域

nginx - ffmpeg exec命令未在nginx rtmp中运行

amazon-web-services - 无法使用 kubernetes 与在 AWS EC2 实例中本地创建的 Pod 通信

Java-使用系统DNS服务器设置