Cannot connect to flathub anymore

It seems I cannot connect to flathub anymore. Trying to install an app from Gnome Software center returns: “No such ref ‘123’ in remote flathub” and trying to interact with flathub in the terminal via the flatpak command returns “Can’t load uri Unacceptable TLS certificate” What’s gone wrong here and how can I fix it?