Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
Bug 2109606 - Not able to enable repositories when FIPS is enabled.
Summary: Not able to enable repositories when FIPS is enabled.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.11.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: 6.12.0
Assignee: Eric Helms
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-21 15:25 UTC by Charles
Modified: 2022-11-16 13:35 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-katello-4.5.0.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2110572 (view as bug list)
Environment:
Last Closed: 2022-11-16 13:34:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Error message (89.09 KB, image/png)
2022-07-21 15:25 UTC, Charles
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35262 0 Normal Ready For Testing b'Not able to enable repositories when FIPS is enabled.' 2022-07-22 05:00:11 UTC
Red Hat Issue Tracker SAT-12830 0 None None None 2022-09-08 20:38:44 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:35:05 UTC

Description Charles 2022-07-21 15:25:29 UTC
Created attachment 1898519 [details]
Error message

Description of problem:
Not able to enable repositories when FIPS is enabled.  

Version-Release number of selected component (if applicable):
RHEL 8.6 FIPS enabled, Satellite 6.11.0, IPA version 4.9.8 on RHEL 9 FIPS enabled

How reproducible:


Steps to Reproduce:
1. Install RHEL 8.6 on new VM
2. Enable FIPS mode and reboot
3. Bind OS to IDM
4. Create HTTP service in IDM for Satellite
5. Issue certificate for Satellite from IDM
6. Install Satellite with custom certificates from IDM and enable foreman-ipa-authentication true
7. Download and install manifest
8. Attempt to enable repositories

Actual results:
ERROR: SSL_connect returned=1 errno=0 state=error: certificate verify failed (CA signature digest algorithm too weak)

Expected results:
Repositories enabled without issue.

Additional info:
When FIPS is turned off, repositories are able to be enabled and synced.

Comment 2 Eric Helms 2022-07-21 20:22:29 UTC
The cause of the breakage is the redhat-uep.pem that is shipped by Satellite is older (from a RHEL 7 system) that had only sha1 based signature's in the certificates. The solution is for Satellite to ship a redhat-uep.pem from a RHEL 8 machine.

In the meantime, the work around is as follows, on a FIPS enabled RHEL 8 Satellite:


cp /etc/rhsm/ca/redhat-uep.pem /usr/share/gems/gems/ca/redhat-uep.pem


NOTE: This will get over written and need to be re-done *any* time the rubygem-katello package is updated until we ship an official update.

Comment 3 Eric Helms 2022-07-21 20:27:04 UTC
(In reply to Eric Helms from comment #2)
> The cause of the breakage is the redhat-uep.pem that is shipped by Satellite
> is older (from a RHEL 7 system) that had only sha1 based signature's in the
> certificates. The solution is for Satellite to ship a redhat-uep.pem from a
> RHEL 8 machine.
> 
> In the meantime, the work around is as follows, on a FIPS enabled RHEL 8
> Satellite:
> 
> 
> cp /etc/rhsm/ca/redhat-uep.pem /usr/share/gems/gems/ca/redhat-uep.pem
> 
> 
> NOTE: This will get over written and need to be re-done *any* time the
> rubygem-katello package is updated until we ship an official update.

Apologies, I goofed the path slightly:

cp /etc/rhsm/ca/redhat-uep.pem /usr/share/gems/gems/katello-*/ca/redhat-uep.pem

Comment 4 Eric Helms 2022-07-21 20:32:22 UTC
Created redmine issue https://projects.theforeman.org/issues/35262 from this bug

Comment 5 Bryan Kearney 2022-07-22 00:05:08 UTC
Upstream bug assigned to ehelms

Comment 6 Bryan Kearney 2022-07-22 00:05:10 UTC
Upstream bug assigned to ehelms

Comment 7 Bryan Kearney 2022-07-25 16:05:31 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35262 has been resolved.

Comment 14 errata-xmlrpc 2022-11-16 13:34:44 UTC
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 (Important: Satellite 6.12 Release), 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/RHSA-2022:8506


Note You need to log in before you can comment on or make changes to this bug.