码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 处理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

  • 相关阅读:
    《TCP/IP网络编程》阅读笔记--标准I/O和I/O流分离
    openssl websockets
    cart算法python实现:从CART算法中学习如何构建有效的决策树
    RAPTOR 一种基于树的RAG方法,RAG的准确率提高 20%
    碎煤机crusher
    阿里云张新涛:连接产业上下游,构建XR协作生态
    6、JVM-JVM调优工具与实战
    华为云大数据BI 为中小型企业智慧运营保驾护航
    Zookeeper面试题整理含答案
    【web-攻击应用程序框架】(12.2)共享主机与服务提供商:攻击、保障
  • 原文地址:https://blog.csdn.net/littlefang/article/details/126519925
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号