Running the following fails due to certificate error:
$ pacman --noconfirm -Sy archlinux-keyring
$ pacman --noconfirm -Syu
$ pacman-db-upgrade
$ pacman --noconfirm -S WHATEVER
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirrors.kernel.org : error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
Running the following fails due to certificate error: