Check
Confirm AlmaLinux and TuxCare package-signing keys are installed on the system and verify their fingerprints match vendor values.
The keys are stored as "RPM-GPG-KEY-AlmaLinux-9" and "RPM-GPG-KEY-TuxCare" inside the "/etc/pki/rpm-gpg/" directory.
List GPG keys installed on the system using the following command:
$ rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey
TuxCare (Software Signing Key) <
[email protected]> public key
AlmaLinux OS 9 <
[email protected]> public key
If the AlmaLinux and TuxCare GPG keys are not installed, this is a finding.
List key fingerprints of installed GPG keys using the following commands:
$ gpg -q --keyid-format short --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
pub rsa4096/B86B3716 2022-01-18 [SC]
Key fingerprint = BF18 AC28 7617 8908 D6E7 1267 D36C B86C B86B 3716
uid AlmaLinux OS 9 <
[email protected]>
sub rsa4096/C9BA6CAA 2022-01-18 [E]
$ gpg -q --keyid-format short --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare
pub rsa4096/8D50EB66 2023-03-06 [SC]
Key fingerprint = FAD7 8590 81D0 738B 7A82 8496 D07B F2A0 8D50 EB66
uid TuxCare (Software Signing Key) <
[email protected]>
sub rsa4096/A9C70659 2023-03-06 [E]
If either "/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9" or "/etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare" key files are missing, this is a finding.
Compare key fingerprints of installed AlmaLinux and TuxCare GPG keys with fingerprints listed at
https://almalinux.org/security/
https://docs.tuxcare.com/enterprise-support-for-almalinux/#gnupg-keys
If the key fingerprints do not match, this is a finding.