Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
.FIPS mode now supports the `aes128-cts-hmac-sha1-96` and `aes256-cts-hmac-sha1-96` encryption types
Previously, Kerberos could not use the `aes128-cts-hmac-sha1-96` and `aes256-cts-hmac-sha1-96` encryption types in FIPS mode on RHEL 9 because the SHA-1 hash algorithm is deprecated in RHEL 9.
With this release, the KRB5KDF key derivation function has been modified and the `FIPS:AD-SUPPORT` crypto subpolicy has been changed to enable `aes128-cts-hmac-sha1-96` and `aes256-cts-hmac-sha1-96` in FIPS mode.
As a result, with the `FIPS:AD-SUPPORT` crypto-policy enabled, the Kerberos Key Distribution Center (KDC) can use the two encryption types to achieve the following:
* Create a KDC database.
* Create keys for Kerberos principals.
* Use the keys for the communication between the client and the KDC.
Enabling the `FIPS:AD-SUPPORT` crypto-policy is required if your systems are integrated into Active Directory. Note that `FIPS:AD-SUPPORT` does not support the `arcfour-hmac-md5` cipher. If this cipher is needed, enable it with the `FIPS:AD-SUPPORT-LEGACY` support policy.
Description of problem:
It is not possible to create a KDC db with the help of "kdb5_util" when the default master_key_type (aes256-cts-hmac-sha1-96) is used.
Version-Release number of selected component (if applicable):
krb5-server-1.19.1-13.el9.x86_64
openssl-3.0.0-6.el9.x86_64
RHEL-9.0.0-20220110.3
How reproducible:
Steps to Reproduce:
1. hostnamectl set-hostname kerberos.example.com
2. sed -i "1i 127.0.0.1 kerberos.example.com" /etc/hosts
3. echo -ne '[realms]\nEXAMPLE.COM = {\n kdc = kerberos.example.com\n admin_server = kerberos.example.com\n}\n\n[domain_realm]\n.example.com = EXAMPLE.COM\nexample.com = example.com\n' > /etc/krb5.conf.d/example_com
4. sed -i "s/^# default_realm/ default_realm/" /etc/krb5.conf
5. modify /var/kerberos/krb5kdc/kdc.conf
...
supported_enctypes = aes256-sha2:normal
...
Actual results:
#kdb5_util create -r EXAMPLE.COM -P password -k aes256-cts-hmac-sha1-96
Loading random data
Initializing database '/var/kerberos/krb5kdc/principal' for realm 'EXAMPLE.COM',
master key name 'K/M'
kdb5_util: Cryptosystem internal error while transforming master key from password
Expected results:
The KDC db should be created because "hmac-sha1-96" will be supported in FIPS mode.
Additional info:
- Works with aes256-cts-hmac-sha384-192:
# kdb5_util create -r EXAMPLE.COM -P password -k aes256-cts-hmac-sha384-192
Loading random data
Initializing database '/var/kerberos/krb5kdc/principal' for realm 'EXAMPLE.COM',
master key name 'K/M'
Not really no.
Unfortunately the Krb5 KDF is not an approved KDF, so the krb5 code needs to either explictly opt out of FIPS mode, or simply accept this limitation in FIPS mode.
Comment 5Alexander Bokovoy
2022-01-13 17:54:51 UTC
From Simo on IRC:
"pass the -fips property when instantiating the KDF for now, until we can find a way to have it in the fips provider"
This is to explicitly get out of FIPS policy use for krb5kdc.
I confirm that passing the "-fips" property when retrieving the default KRB5 KDF does the trick. But if we take this decision, the KDC will not be FIPS-compliant.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (new packages: krb5), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:3951
Description of problem: It is not possible to create a KDC db with the help of "kdb5_util" when the default master_key_type (aes256-cts-hmac-sha1-96) is used. Version-Release number of selected component (if applicable): krb5-server-1.19.1-13.el9.x86_64 openssl-3.0.0-6.el9.x86_64 RHEL-9.0.0-20220110.3 How reproducible: Steps to Reproduce: 1. hostnamectl set-hostname kerberos.example.com 2. sed -i "1i 127.0.0.1 kerberos.example.com" /etc/hosts 3. echo -ne '[realms]\nEXAMPLE.COM = {\n kdc = kerberos.example.com\n admin_server = kerberos.example.com\n}\n\n[domain_realm]\n.example.com = EXAMPLE.COM\nexample.com = example.com\n' > /etc/krb5.conf.d/example_com 4. sed -i "s/^# default_realm/ default_realm/" /etc/krb5.conf 5. modify /var/kerberos/krb5kdc/kdc.conf ... supported_enctypes = aes256-sha2:normal ... Actual results: #kdb5_util create -r EXAMPLE.COM -P password -k aes256-cts-hmac-sha1-96 Loading random data Initializing database '/var/kerberos/krb5kdc/principal' for realm 'EXAMPLE.COM', master key name 'K/M' kdb5_util: Cryptosystem internal error while transforming master key from password Expected results: The KDC db should be created because "hmac-sha1-96" will be supported in FIPS mode. Additional info: - Works with aes256-cts-hmac-sha384-192: # kdb5_util create -r EXAMPLE.COM -P password -k aes256-cts-hmac-sha384-192 Loading random data Initializing database '/var/kerberos/krb5kdc/principal' for realm 'EXAMPLE.COM', master key name 'K/M'