Wget error:Connection error: Invalid SSL certificate

I changed openwrt opkg sources to a local mirror, but update fails.
when test with wget in terminal, it shows ssl certificate error.why?

wget https://mirrors.bfsu.edu.cn/openwrt/releases/21.02.0/targets/ath79/generic/packages/Pack
ages.gz
Downloading 'https://mirrors.bfsu.edu.cn/openwrt/releases/21.02.0/targets/ath79/generic/packages/Packages.gz'
Connecting to 2001:da8:20f:4435:4adf:37ff:fe55:2840:443
Connection error: Invalid SSL certificate
1 Like

hope this will help ,
I had the same problem , wget and opkg update failed too.

then I found my system time in openwrt is not right
so i sync it like this

ntpd -p asia.pool.ntp.org

wait one minute ,then the system time is right
and wget or opkg update again
success.
the problem is solved

1 Like