Downloading with opkg [use-https-not-http]

How can I teach opgk to use https instead of http?

1 Like

Why do you want to do that? There is no security gain from doing that.

Sources are defined in /etc/opkg/distfeeds.conf so you can change to https there if you really insist.


After changing the file, I get this?

Failed to download the package list from https:

It's working here

root@router:~# opkg update
Updated list of available packages in /var/opkg-lists/openwrt_core
Signature check passed.

But as mentioned not sure why you would do it as it only increases the workload of the repository servers without any benefits.

1 Like
sed -i -e "s/https:/http:/" /etc/opkg/*.conf
opkg update
opkg --force-depends remove libmbedtls\* libustream-mbedtls\*
opkg install ca-bundle ca-certificates libustream-mbedtls
sed -i -e "s/http:/https:/" /etc/opkg/*.conf
opkg update

yes super exactly right

1 Like


Why do you want do this, for security reason? (I want to say if there is a real difference using https instead of http for update/download the openwrt packages).

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.