luci-mod-system: file naming improvement for repo key management
authorPaul Donald <[email protected]>
Sun, 2 Nov 2025 17:33:44 +0000 (18:33 +0100)
committerPaul Donald <[email protected]>
Sun, 2 Nov 2025 17:34:30 +0000 (18:34 +0100)
commit12995312420bbe32d7327beac30e8b52243732b4
tree0fb4dd109d4158a8ae70fe610b1ef7a262b000ee
parentc0864e6aad7d3c6fef2f5146fccabde27c7df45f
luci-mod-system: file naming improvement for repo key management

When downloading a key, try to get the filename of the key. opkg expects it to
match the key fingerprint when verifying .sig files. apk not so.

Try to save the public key file with the name from the provided URL, so it is
not named "key_blah" which won't match its fingerprint.

The alternative would be to call usign with the public key file as input, and
then rename it to its fingerprint. This is only necessary for opkg which is on
the way out.

If the public key file at the remote resource is not named according to its
fingerprint, that's on the repo owner.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/repokeys.js