OpenWRT: Bouncing Back from a Failed SSL Library Crossgrade
![wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.](https://files.catbox.moe/vhcf1z.png)
In the event of a failed crossgrade between SSL libraries (e.g. OpenSSL to Mbed TLS) on an OpenWRT installation, it's likely that poor opkg will be left in a Catch 22 situation: How can it install an SSL library when it needs an SSL library to install one? Well…
Instructions:
This will temporarily weaken your OpenWRT device's security.
- Connect to the OpenWRT device in question over SSH from another device which is on the same local area network.
- Open the file
/etc/opkg.confin a text editor and changeoption check_signature 1tooption check_signature 0. - Open the file
/etc/opkg/distfeeds.confin a text editor and change the scheme of each URL fromhttpstohttp - If it was the installation or upgrade of a specific package that caused the failed crossgrade e.g.
luci-ssl, resume that process by running the relevant command e.g.opkg install luci-ssloropkg upgrade luci-ssl. Otherwise, ensure that the packagesca-bundle,ca-certificates, and eitherlibustream-mbedtls*orlibustream-openssl*are installed. - Undo the changes you made in steps two and three.
- DO NOT FORGET TO DO THE PREVIOUS STEP.
- Run
opkg update.
Magic Spearmint
Comments
Post a Comment