OpenClash icon indicating copy to clipboard operation
OpenClash copied to clipboard

[Bug] openclash更新配置文件失败,一直报证书过期

Open Nodewebzsz opened this issue 1 year ago • 2 comments

Verify Steps

  • [X] Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • [X] Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • [X] Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • [X] Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • [X] Definite 这确实是 OpenClash 出现的问题
  • [ ] Contributors 我有能力协助 OpenClash 开发并解决此问题
  • [ ] Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.024-beta

Bug on Environment

Immortalwrt

OpenWrt Version

OpenWrt 06.13.2024 by Kiddin

Bug on Platform

Linux-arm64

Describe the Bug

2024-09-07 20:20:22 错误:【zszweb】下载失败,请检查网络或稍后再试... 2024-09-07 20:20:22 错误:配置文件【zszweb】订阅失败,尝试不使用代理下载配置文件... 2024-09-07 20:20:21【/tmp/yaml_sub_tmp_config.yaml】下载失败:【curl: (60) Cert verify failed: BADCERT_EXPIRED More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.】 2024-09-07 20:20:21 开始更新配置文件【zszweb】...

To Reproduce

2024-09-07 20:20:22 错误:【zszweb】下载失败,请检查网络或稍后再试... 2024-09-07 20:20:22 错误:配置文件【zszweb】订阅失败,尝试不使用代理下载配置文件... 2024-09-07 20:20:21【/tmp/yaml_sub_tmp_config.yaml】下载失败:【curl: (60) Cert verify failed: BADCERT_EXPIRED More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.】 2024-09-07 20:20:21 开始更新配置文件【zszweb】...

OpenClash Log

2024-09-07 20:20:22 错误:【zszweb】下载失败,请检查网络或稍后再试...
2024-09-07 20:20:22 错误:配置文件【zszweb】订阅失败,尝试不使用代理下载配置文件...
2024-09-07 20:20:21【/tmp/yaml_sub_tmp_config.yaml】下载失败:【curl: (60) Cert verify failed: BADCERT_EXPIRED More details here: https://curl.se/docs/sslcerts.html  curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.】
2024-09-07 20:20:21 开始更新配置文件【zszweb】...

OpenClash Config

No response

Expected Behavior

恢复配置更新

Additional Context

No response

Nodewebzsz avatar Sep 07 '24 12:09 Nodewebzsz

一样 【/tmp/yaml_sub_tmp_config.yaml】下载失败:【curl: (60) SSL certificate problem: certificate has expired More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.】

AdeSpike avatar Sep 15 '24 16:09 AdeSpike

可能是订阅格式转换的外部网站出了问题,更新下版本,换个订阅格式转换网站

fpenuin avatar Sep 22 '24 14:09 fpenuin

改一下拉取配置文件的代码,取消证书校验: vim /usr/share/openclash/openclash.sh 在config_download()方法中的三个 curl 后增加 -k 参数即可

kevingekun avatar Oct 22 '24 09:10 kevingekun

改一下拉取配置文件的代码,取消证书校验: vim /usr/share/openclash/openclash.sh 在config_download()方法中的三个 curl 后增加 -k 参数即可

正解,改了就更新成功了!谢谢大神

lsvf0240 avatar Oct 22 '24 11:10 lsvf0240

按此方法修改这个问题也好了

howard55 avatar Nov 21 '24 14:11 howard55

按此方法修改这个问题也好了

配置下载正常了直接把路由器搞挂了,页面和SSH都连不上了,重启后短暂能连上就由挂了,短暂期把meta内核改名后路由器就不挂死了,感觉meta内核还有问题,因挂死无法看日志

howard55 avatar Nov 22 '24 02:11 howard55

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jan 21 '25 08:01 github-actions[bot]

0.46097版本 修改 /usr/share/openclash/openclash_curl.sh curl 后增加-k 跳过 curl 证书验证

jokerknight avatar Apr 05 '25 06:04 jokerknight