Letencrypt续订失败:无法绑定到IPv4或IPv6 ..跳过

Ant*_*rth 38 lets-encrypt

我得到的完整错误消息是:

Attempting to renew cert from /etc/letsencrypt/renewal/somedomain.com.conf produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.
Run Code Online (Sandbox Code Playgroud)

这是在AWS ubuntu 14.04实例上运行的.所有端口都是开放传出,443是开放传入.

有人有主意吗?

JKL*_*LIR 44

__CODE__当您的服务器已在端口443上运行时,您可能使用(预配置)运行脚本.

您可以在续订前停止服务器并在之后启动它们.

男人说:

--apache          Use the Apache plugin for authentication & installation
--standalone      Run a standalone webserver for authentication
--nginx           Use the Nginx plugin for authentication & installation
--webroot         Place files in a server's webroot folder for authentication
--manual          Obtain certificates interactively, or using shell script hooks
Run Code Online (Sandbox Code Playgroud)

如果我运行续订,__CODE__我不会得到任何错误.

  • 谢谢...使用`./certbot-auto renew --apache`并像魅力一样工作 (4认同)

小智 35

在执行此操作之前,您只需要停止所有正在运行的服务器,如Apache,nginx或OpenShift.

  • 这是续订 SSL 证书的唯一选择吗?更新时整个服务器应该关闭吗? (4认同)
  • 做工精美。谢谢!sudo service apache2 stop然后sudo certbot certonly --standalone -d www.site.com (2认同)

Dav*_*mas 7

正如其他答案所示,您需要为正在运行的Web服务器传递选项,例如:

没有webserver param:

sudo certbot renew
Run Code Online (Sandbox Code Playgroud)

Cert需要更新,自动续订...
续订现有证书
执行以下挑战:针对example.com的tls-sni-01挑战
清理挑战尝试从/ etc/letsencrypt/renewal续订证书(example.com) /example.com.conf产生了一个意外错误:
绑定到端口443的问题:无法绑定到IPv4或IPv6 ..跳过.

然后,再次使用webserver param(成功):

sudo certbot renew --nginx 
Run Code Online (Sandbox Code Playgroud)

Cert需要更新,自动续订...
续订现有证书
执行以下挑战:example.com的tls-sni-01挑战
等待验证......
清理挑战

通过重装nginx服务器部署的新证书; fullchain是/etc/letsencrypt/live/example.com/fullchain.pem

恭喜,所有续约都成功了.以下证书已续订​​:/etc/letsencrypt/live/example.com/fullchain.pem(成功)


Hag*_*ema 6

[这是专门针对ubuntu的]

  1. 以 root 用户身份登录到您的服务器
  2. 使用以下命令停止您的服务器(对于 nginx)

    service nginx stop

  3. 然后更新您的证书

    certbot renew

  4. 启动你的服务器

    service nginx start

[提示] 要检查更新证书的到期日期,请输入以下命令

ssl-cert-check -c [Path_to_your_certificate]/fullchain.pem
Run Code Online (Sandbox Code Playgroud)

例如

ssl-cert-check -c /etc/letsencrypt/live/[your_domain_name]/fullchain.pem
Run Code Online (Sandbox Code Playgroud)

或者

ssl-cert-check -c /etc/letsencrypt/live/[your_domain_name]/cert.pem
Run Code Online (Sandbox Code Playgroud)

如果您的服务器中尚未安装 ssl-cert-check,请使用

apt install ssl-cert-check
Run Code Online (Sandbox Code Playgroud)

注意:证书只有在没有过期的情况下才能更新。如果它过期了,你必须创建一个新的。

我希望这有帮助


Avi*_*sho 5

对于 NodeJS/PM2 用户

我正在使用PM2我的NodeJS服务,当尝试续订证书时,我还收到“绑定到端口 80 时出现问题:无法绑定到 IPv4 或 IPv6”。错误信息。

Apache正如上面/的答案中提到的Ngnix,停止我的服务然后尝试续订解决了问题。

pm2 stop all
sudo certbot renew
pm2 start all
Run Code Online (Sandbox Code Playgroud)


小智 5

对于 Ngnix

sudo certbot renew --nginx
Run Code Online (Sandbox Code Playgroud)


小智 3

发生这种情况是因为您使用了 --standalone。该选项的目的是启动一个临时网络服务器,因为您没有运行该服务器。

下次使用 --webroot 方法,您将能够使用已经运行的 nginx 服务器。

  • 复制粘贴解决方案。来自:https://community.letsencrypt.org/t/trying-to-renew-cert-on-nginx-but-getting-problem-binding-to-port-443-could-not-bind-to-ipv4-或-ipv6/36289/3 (2认同)