• 处理LetsEncrypt证书签发错误acme-v02.api.letsencrypt.org timeout


    现象

    LetsEncrypt证书过期后,使用certbot签发证书报错:

    [root@my-aliyun-server bin]# sudo certbot --apache
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    An unexpected error occurred:
    requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)
    Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
    
    • 1
    • 2
    • 3
    • 4
    • 5

    从服务器ping acme-v02.api.letsencrypt.org 是通的

    [root@my-aliyun-server bin]# ping acme-v02.api.letsencrypt.org
    PING ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com (172.65.32.248) 56(84) bytes of data.
    64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=1 ttl=48 time=178 ms
    64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=2 ttl=48 time=178 ms
    64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=3 ttl=48 time=178 ms
    
    • 1
    • 2
    • 3
    • 4
    • 5

    从服务器curl https地址,访问非常不稳定,SSL连接经常失败,偶尔成功。
    从其它服务器curl是可以正常访问的。

    [root@my-aliyun-server bin]# curl -v https://acme-v02.api.letsencrypt.org/directory
    * About to connect() to acme-v02.api.letsencrypt.org port 443 (#0)
    *   Trying 172.65.32.248...
    * Connected to acme-v02.api.letsencrypt.org (172.65.32.248) port 443 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    解决方案

    证书签发出问题的服务器在阿里云北京,从阿里云北京等其它服务器可以正常访问 https://acme-v02.api.letsencrypt.org,推测有关部门阻断了这台服务器IP和特定境外IP的通信。
    于是更换服务器的公网IP地址,问题解决。

    参考资料
    https://community.letsencrypt.org/t/httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/115221

  • 相关阅读:
    Docker-Windows安装使用
    Flink架构&重要概念解析-超详理解
    6.29面试题记录收集
    博弈论,NIM游戏,台阶型,集合型,SG函数,详解
    Eclipse嵌套项目部分项目丢失SVN源信息
    java图形化界面编程之Swing
    k8s部署服务+日志收集+监控系统+CICD自动化
    Linux磁盘管理
    Word控件Spire.Doc 【段落处理】教程(四):如何在 C#、VB.NET 中设置 Word 项目符号样式
    真良心干货保姆级手把手教你Python网络编程,学不会我去你家教你
  • 原文地址:https://blog.csdn.net/littlefang/article/details/126519925