当前位置:论坛首页 > Linux面板 > 求助

【待反馈】自动续签Let's Encrypt证书失败

发表在 Linux面板2023-8-18 23:53 [复制链接] 10 3158

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.0.1

系统版本:OpenCloudOS 8.6.2205 x86_64(Py3.7.16)

问题描述:使用shell脚本续签Let's Encrypt证书,结果失败

相关截图(日志、错误):
shell命令为:/www/server/panel/pyenv/bin/python3 -u /www/server/panel/class/acme_v2.py --renew=1
报错:
|-共需要续签 1 张证书
Traceback (most recent call last):  File "/www/server/panel/class/acme_v2.py", line 1699, in renew_cert    self.get_apis()  File "/www/server/panel/class/acme_v2.py", line 90, in get_apis    raise Exception(res.content)Exception: curl: (7) Couldn't connect to server

使用道具 举报 只看该作者 回复
发表于 2023-8-19 09:20:26 | 显示全部楼层
您好,您在服务器上使用curl以及ping命令访问看下是否正常呢?
  1. ping letsencrypt.status.io
  2. curl -v letsencrypt.status.io
复制代码
使用道具 举报 回复 支持 反对
发表于 2023-8-19 21:54:40 | 显示全部楼层
本帖最后由 宝塔用户_vgjlku 于 2023-8-19 21:56 编辑
谢花郎 发表于 2023-8-19 09:20
您好,您在服务器上使用curl以及ping命令访问看下是否正常呢?

好的,谢谢回复~
ping letsencrypt.status.io的反馈应该是通的:
  1. PING d2kxz9smk6axnj.cloudfront.net (54.192.150.109) 56(84) bytes of data.
  2. 64 bytes from server-54-192-150-109.sin2.r.cloudfront.net (54.192.150.109): icmp_seq=1 ttl=246 time=0.715 ms
  3. 64 bytes from server-54-192-150-109.sin2.r.cloudfront.net (54.192.150.109): icmp_seq=2 ttl=246 time=0.670 ms
  4. 64 bytes from server-54-192-150-109.sin2.r.cloudfront.net (54.192.150.109): icmp_seq=3 ttl=246 time=0.680 ms
  5. 64 bytes from server-54-192-150-109.sin2.r.cloudfront.net (54.192.150.109): icmp_seq=4 ttl=246 time=0.684 ms
复制代码

curl -v letsencrypt.status.io
的反馈是:
  1. * Rebuilt URL to: letsencrypt.status.io/
  2. *   Trying 54.192.150.114...
  3. * TCP_NODELAY set
  4. * Connected to letsencrypt.status.io (54.192.150.114) port 80 (#0)
  5. > GET / HTTP/1.1
  6. > Host: letsencrypt.status.io
  7. > User-Agent: curl/7.61.1
  8. > Accept: */*
  9. >
  10. < HTTP/1.1 301 Moved Permanently
  11. < Server: CloudFront
  12. < Date: Sat, 19 Aug 2023 13:53:34 GMT
  13. < Content-Type: text/html
  14. < Content-Length: 167
  15. < Connection: keep-alive
  16. < Location: https://letsencrypt.status.io/
  17. < X-Cache: Redirect from cloudfront
  18. < Via: 1.1 2a45d2b5ea9ef7dcb9d372459729c164.cloudfront.net (CloudFront)
  19. < X-Amz-Cf-Pop: SIN2-C1
  20. < X-Amz-Cf-Id: vrrQWQFYDr7E7NNaJEvBq1LxpA5nJ_gzXoLOjN7i8xfDd_1rO3ig8w==
  21. <
  22. <html>
  23. <head><title>301 Moved Permanently</title></head>
  24. <body>
  25. <center><h1>301 Moved Permanently</h1></center>
  26. <hr><center>CloudFront</center>
  27. </body>
  28. </html>
  29. * Connection #0 to host letsencrypt.status.io left intact
复制代码

使用道具 举报 回复 支持 反对
发表于 2023-8-21 09:24:00 | 显示全部楼层
宝塔用户_vgjlku 发表于 2023-8-19 21:54
好的,谢谢回复~
ping letsencrypt.status.io的反馈应该是通的:

现在续签能正常吗?如果还是不行话的,所有错误信息截图完整提供下
使用道具 举报 回复 支持 反对
发表于 2023-8-21 23:09:24 | 显示全部楼层
谢花郎 发表于 2023-8-21 09:24
现在续签能正常吗?如果还是不行话的,所有错误信息截图完整提供下

现在我人工续签了,运行这个脚本就会提示“没有找到30天内到期的SSL证书,正在尝试去寻找其它可续签证书!”,不知道有什么测试的方法吗?
使用道具 举报 回复 支持 反对
发表于 2023-8-22 09:49:32 | 显示全部楼层
宝塔用户_vgjlku 发表于 2023-8-21 23:09
现在我人工续签了,运行这个脚本就会提示“没有找到30天内到期的SSL证书,正在尝试去寻找其它可续签证书! ...

您好,网站列表内有快到期的域名吗?
使用道具 举报 回复 支持 反对
发表于 2023-8-23 21:31:15 | 显示全部楼层
谢花郎 发表于 2023-8-22 09:49
您好,网站列表内有快到期的域名吗?

目前没有呢
使用道具 举报 回复 支持 反对
发表于 2023-8-24 10:13:52 | 显示全部楼层

可以尝试调整服务器系统时间,然后去测试
使用道具 举报 回复 支持 反对
发表于 2024-3-15 20:34:42 | 显示全部楼层
您好,这个问题解决了吗
使用道具 举报 回复 支持 反对
发表于 2024-8-19 16:34:32 | 显示全部楼层
|-正在发送CSR..
|-错误: 发送CSR: 响应状态404 响应值:{'type': 'urn:ietf:params:acme:error:malformed', 'detail': 'No order for ID 295954919586', 'status': 404}

这个怎么处理?
使用道具 举报 回复 支持 反对
发表于 2024-11-1 16:01:36 | 显示全部楼层
curl 提示301的错误

  1. curl -v letsencrypt.status.io
  2. *   Trying 3.160.150.124:80...
  3. * Connected to letsencrypt.status.io (3.160.150.124) port 80 (#0)
  4. > GET / HTTP/1.1
  5. > Host: letsencrypt.status.io
  6. > User-Agent: curl/7.88.1
  7. > Accept: */*
  8. >
  9. < HTTP/1.1 301 Moved Permanently
  10. < Server: CloudFront
  11. < Date: Fri, 01 Nov 2024 08:00:11 GMT
  12. < Content-Type: text/html
  13. < Content-Length: 167
  14. < Connection: keep-alive
  15. < Location: https://letsencrypt.status.io/
  16. < X-Cache: Redirect from cloudfront
  17. < Via: 1.1 69114e4ea0aa4e532a5be63a75c51e2c.cloudfront.net (CloudFront)
  18. < X-Amz-Cf-Pop: FRA60-P7
  19. < X-Amz-Cf-Id: D5ru5cvHCgh2eJcleCgfNl3isH99kIA2VjWYCQG2jVgdBVurAKtVEQ==
  20. <
  21. <html>
  22. <head><title>301 Moved Permanently</title></head>
  23. <body>
  24. <center><h1>301 Moved Permanently</h1></center>
  25. <hr><center>CloudFront</center>
  26. </body>
  27. </html>
  28. * Connection #0 to host letsencrypt.status.io left intact
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表