Skip to content

RPM-GPG-KEY-amazon-linux-2

2

I have a requirement to verify the RPM GPG Key fingerprint, but cannot find it anywhere online. I just need something like RedHat provides here -> https://access.redhat.com/security/team/key
Running the command below to obtain the fingerprint from the RPM GPG key. Where is the webpage or resource to verify that "Yes! This is the correct key"?

gpg -q --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
pub  4096R/C87F5B1A 2017-06-07 Amazon Linux <amazon-linux@amazon.com>
      Key fingerprint = 99E6 17FE 5DB5 27C0 D8BD  5F8E 11CF 1F95 C87F 5B1A
1 Answer
1

You are correct that AWS doesn't provide a dedicated security key page identical to RedHat's. However, the official fingerprint for the Amazon Linux 2 key is documented in the Amazon Linux 2 FAQs.

Under the "Package Security" section:

  • Key ID: C87F5B1A
  • Fingerprint: 99E6 17FE 5DB5 27C0 D8BD 5F8E 11CF 1F95 C87F 5B1A

If you want to verify the key's integrity against the source during an automated build or audit, you can use this one-liner to fetch and check the fingerprint directly from the Amazon repo:

curl -s https://amazonlinux-2-repos-us-east-1.s3.dualstack.us-east-1.amazonaws.com/RPM-GPG-KEY-amazon-linux-2 | gpg --import --import-options show-only --with-fingerprint

This confirms the key you have in /etc/pki/rpm-gpg/ is legitimate.

This matches the output of your gpg command exactly. For additional peace of mind, you can also pull the key directly from the official AWS S3 repository via HTTPS to verify it hasn't been tampered with locally. However, the official fingerprint for the Amazon Linux 2 key is documented in the Amazon Linux 2 FAQs under the 'Package Security' section -> https://aws.amazon.com/amazon-linux-2/faqs/ .

EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.