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.
2 Likes
After changing the file, I get this?
Failed to download the package list from https:
It's working here
root@router:~# opkg update Downloading https://downloads.openwrt.org/releases/18.06.2/targets/ar71xx/generic/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_core Downloading https://downloads.openwrt.org/releases/18.06.2/targets/ar71xx/generic/packages/Packages.sig 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
4 Likes
yes super exactly right
1 Like
Interesting:
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.