当前位置: 首页 > news >正文

[openwrt] openwrt换成清华源后,SSL verify error: unknown error

 

root@OpenWrt:/etc/opkg# opkg update

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/targets/bcm27xx/bcm2711/packages/Packages.gz

SSL verify error: unknown error

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/targets/bcm27xx/bcm2711/packages/Packages.gz

 

问题是时间没有更新,应该去luci的时间界面更新下时间

http://your-router-ip/cgi-bin/luci/admin/system/system

如果不行, 再看下面的解决办法。

 

The "SSL verify error: unknown error" when running opkg update on OpenWrt is a common problem, usually related to issues with your system's SSL/TLS certificates or incorrect time/date settings.

Since the opkg update relies on SSL/TLS to securely download package lists from the repository (the https:// URL), a failure in certificate validation halts the process.

Here are the most common solutions, starting with the easiest:

 

1. Check and Set System Time ⏰

 

The most frequent cause for SSL errors is an incorrect system date and time. Certificates have validity periods, and if your router's clock is far off, the certificate will fail verification.

  • Check the current time:

    Bash
     
    date
    
  • If the time is wrong, try to sync it. If your router has WAN connectivity, it should sync automatically via NTP, but a manual sync may be needed:

    • Install ntpclient (if needed) and force a sync (if possible):

      • Note: You may need to use the --no-check-certificate option for the initial install if you don't have the time set.

    • If you have LuCI (the web interface), go to SystemSystemTime Synchronization and ensure the NTP client is enabled and click "Sync with browser" if available, then Save & Apply.

    • If you have an internet-connected computer and SSH access, you can manually set the time (replace the date and time with the current time):

      Bash
       
      date -s "2025-11-04 05:45:00"
      
    • After setting the correct time, try opkg update again.


 

2. Temporarily Bypass SSL Check (Insecure) ⚠️

 

You can temporarily bypass the certificate check to allow opkg update to complete, which is useful for installing an updated certificate bundle (see step 3). Use this only as a temporary fix as it removes security checks.

  • Run opkg update with the no-check-certificate option:

    Bash
     
    opkg update --no-check-certificate
    
  • If this succeeds, immediately proceed to the next step to install or update the certificate package.


 

3. Install or Update CA Certificates 🛡️

 

Your OpenWrt installation might be missing the correct or current CA (Certificate Authority) certificates needed to trust the repository's SSL certificate (which is likely a Let's Encrypt certificate).

  • Update the ca-certificates package (use the --no-check-certificate option if your previous opkg update failed):

    Bash
     
    opkg install ca-certificates --no-check-certificate
    
  • Once the package is installed, try a regular update:

    Bash
     
    opkg update
    

 

4. Change the SSL Library (Advanced) 🛠️

 

OpenWrt uses a lightweight SSL library like libustream-wolfssl by default. Sometimes, issues can be resolved by switching to the more standard libustream-openssl.

  • Force-install the necessary OpenSSL utilities (using --no-check-certificate if necessary):

    Bash
     
    opkg update --no-check-certificate
    opkg install libopenssl openssl-util libustream-openssl --no-check-certificate
    
  • Remove the old library (or it may be auto-removed with the install):

    Bash
     
    opkg remove libustream-wolfssl # or whatever your current libustream package is
    
  • Try to update again:

    Bash
     
    opkg update
    

Next Step: If none of these solutions work, I can help you check the contents of your /etc/opkg/distfeeds.conf file to ensure the repository URLs are correct for your OpenWrt version.

 

http://www.gsyq.cn/news/39112.html

相关文章:

  • [OpenWRT/LEDE] a short history of OpenWRT
  • 生成式模型分类
  • 2025年11月学生平板品牌对比榜:新课标适配与错题管理实力榜
  • 2025年11月学生平板品牌评测:读书郎T5系列与四款竞品实力排行
  • 2025年11月适合小学生的学习机品牌推荐:热门机型排行与实测
  • 2025年11月卖得好的学习机品牌推荐:市场榜五强评测
  • AI元人文:价值权衡的计算理论与共识涌现新范式
  • 2025年北京股权纠纷律师事务所权威推荐榜:股权转让/股东争议/公司控制权纠纷专业律师团队精选
  • 2025年北京遗产继承律师事务所权威推荐榜:专业遗嘱继承、房产继承、涉外继承法律服务团队深度解析
  • 2025年北京婚姻家事律师事务所权威推荐榜:专业离婚诉讼、财产分割、子女抚养法律服务机构精选
  • 【AI说Rust 02】如何在 windows11 系统搭建 Rust 开发环境
  • 2025年11月优质太空舱铝板供应商排名:工厂实力与用户评价深度解析
  • 2025年11月太空舱铝板供应商排名:专业对比与实地考察报告
  • 接口实现C#泛型四则运算
  • [Flink/Hologres/汽车] 骋在数据洪流上:Flink+Hologres驱动零跑科技实时计算的应用与实践 [转]
  • 读《Python神经网络编程(异步图书) 塔里克拉希德》有感
  • 【CI130x 离在线】Python使用import opuslib 报错解决方案
  • 蒟蒻的S游记碎碎念
  • 【python刷题记录】移动零-双指针-简单
  • 002 vue3-admin项目的目录及文件说明之public目录
  • Day11CSS特性
  • Maya 2025软件超详细下载安装教程(附安装包和激活步骤)
  • 一款基于 .NET WinForm 开源、轻量且功能强大的节点编辑器,采用纯 GDI+ 绘制无任何依赖库仅仅100+Kb!
  • docker compose.yaml配置
  • Multisim保姆级图文下载安装教程包含下载、安装、汉化、激活
  • JMeter生包
  • 20251103 - 折半搜索 总结
  • NPI
  • Edge插件导入到chrome浏览器
  • CF Pinely Round 5(#2161) 总结