Cant install flathub

When i try to install the flathub repo, it gives me this error.

Peer certificate cannot be authenticated with given CA certificates

Can anyone help.

Can you provide more detailed information? ie. OS, Flatpak version, step to reproduce.