Cert verify failed: BADCERT_NOT_TRUSTED

I am using Xiaomi Mi Router 4A (R4AC) 100M. I am trying to install OpenWrt. I have managed to connect to the telnet server but could not curl the snapshot file.

root@XiaoQiang:/# uname -a
Linux XiaoQiang 3.10.14 #1 MiWiFi-R4AC-3.0.12 Tue Dec 22 12:21:29 UTC 2020 mips GNU/Linux

root@XiaoQiang:/tmp# curl https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/openwrt-ramips-mt76x8-xiao
mi_mi-router-4a-100m-intl-initramfs-kernel.bin --output firmware.bin
curl: (51) Cert verify failed: BADCERT_NOT_TRUSTED

There's an option in curl, to ignore it.

Apparently yes, I've just added --insecure after curl and it worked

curl --insecure {Link}