Node.js Certbot错误:";获取验证数据时出错";,Nginx Ubuntu节点服务器
我正在尝试使用certbot将ssl从家中的服务器添加到已经工作的站点(krementimg.us.to)。此服务器在Ubuntu 16.04上的Nginx后面运行一个节点应用程序。按照以下说明,我的etc/nginx/sites available/default(我的配置文件)如下所示:Node.js Certbot错误:";获取验证数据时出错";,Nginx Ubuntu节点服务器,node.js,ssl,nginx,ubuntu-16.04,certbot,Node.js,Ssl,Nginx,Ubuntu 16.04,Certbot,我正在尝试使用certbot将ssl从家中的服务器添加到已经工作的站点(krementimg.us.to)。此服务器在Ubuntu 16.04上的Nginx后面运行一个节点应用程序。按照以下说明,我的etc/nginx/sites available/default(我的配置文件)如下所示: server { server_name krementimg.us.to; client_max_body_size 20M; listen 80 default_server;
server {
server_name krementimg.us.to;
client_max_body_size 20M;
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
location / {
proxy_pass http://localhost:443;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Nginx侦听端口80并将客户端定向到端口443上运行的应用程序。所有这些都可以正常工作,但是,当我按照certbot网站上的说明运行命令sudoCertBot--nginx
时,我得到了错误
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: krementimg.us.to
Type: connection
Detail: Error getting validation data
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.
我想在我的网站上安装ssl,那么如何解决这个问题呢?我在certbot--nginx上遇到了一些问题 我建议您尝试停止Nginx服务器,然后在独立模式下执行certbot。 命令是:
sudo certbot certonly --standalone -d example.com -d www.example.com
尝试查看是否与上一个命令有差异。如果工作正常,您需要完成Nginx的配置(侦听443端口并加载正确的证书)。
我写了一篇帖子。详情如下:
我在certbot--nginx上遇到了一些问题 我建议您尝试停止Nginx服务器,然后在独立模式下执行certbot。 命令是:
sudo certbot certonly --standalone -d example.com -d www.example.com
尝试查看是否与上一个命令有差异。如果工作正常,您需要完成Nginx的配置(侦听443端口并加载正确的证书)。
我写了一篇帖子。详情如下: