Skip to content

redhat/subscription-gpg-keys

An array of Yum GPG Repo Keys to import

This is an array of strings where each string is a Yum Repo GPG key to import. Specify either rendered keys (file path) on the system, or a URL reference to the key.

If not specified, the primary Redhat keys will be added, as referenced at https://access.redhat.com/security/team/key

The defaults are the keys that sign current packages: release key 2 (fd431d51, which signs RHEL 8, 9, and 10 packages), auxiliary key 3, beta key 2, and the ISV container signing key. The redhat-release package also ships its own keys in /etc/pki/rpm-gpg/, which dnf uses directly.

Red Hat's legacy keys (release key 37017186, auxiliary keys 2fa658e0 and d4082792, and tools key 8366b0d9) are not in the defaults: RHEL 9 rejects their SHA-1 signatures and RHEL 10 rejects all four. A key that fails to import is a warning, not a task failure.

It is possible to forcibly enable installation of GPG keys that are signed with a SHA1 hash function. This is done setting the policy as follows:

  • update-crypto-policies --set DEFAULT:SHA1

To return the system to the default policy, not allowing use of the SHA1 hash function, do:

  • update-crypto-policies --set DEFAULT

The Param redhat/subscription-crypto-policy-override can be set with the policy changes to override the key import. To do so, set the Param to DEFAULT:SHA1 (or any other supported --set directive. NOTE that the --set DEFAULT directive will immediately be reset at the end of the task run.

Objects that Reference redhat/subscription-gpg-keys

Objects used by redhat/subscription-gpg-keys

Not used in current content packs