apk: HTTPS broken after system update
After updating an Alpine edge x86_64 system, apk no longer works with HTTPS:
$ sudo apk update -v
fetch https://ftp.acc.umu.se/mirror/alpinelinux.org/edge/main/x86_64/APKINDEX.tar.gz
480BD0E0A57F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1882:
ERROR: https://ftp.acc.umu.se/mirror/alpinelinux.org/edge/main: Permission denied
WARNING: Ignoring https://ftp.acc.umu.se/mirror/alpinelinux.org/edge/main: No such file or directory
For some reason ca-certificates
was removed during the system update, so changing the mirror to HTTP and reinstalling it fixes the problem.
Should apk-tools
depend on ca-certificates
to avoid this problem in the future?