Rebuild fails with "failed to load system roots and no roots provided"

Indeed the problem was a missing file /etc/pki/tls/certs/ca-bundle.crt