Oddly kept getting a public key failure on Fedora whenever I wanted to upgrade or reinstall brave browser. Took a while, longer than I would have liked, of searching before I was able to resolve it.
Public key for brave-browser-1.3.115-1.x86_64.rpm is not installed
Public key for brave-keyring-1.7-1.noarch.rpm is not installed
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
I think one can reasonably say that Brave screwed up somewhere with their GPG key maintenance.
I tried the REIMPORT key solution and that did not work.
The solution was to DELETE the old key and then import the new one.
Inspect the old key with:
rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
You should need the old key: gpg-pubkey-c2d4e821-5d13a788 Brave Software <support@brave.com> public key
Delete it with:
sudo rpm -e gpg-pubkey-c2d4e821-5d13a788
Rerun the inspection command to check if it is still there.
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
Install the new one with:
The new key is:
gpg-pubkey-c2d4e821-5e22514c Brave Software <support@brave.com> public key
Then reinstall
sudo dnf install brave-browser