Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1652564

Summary: Installation on FIPS fails with "unable to load Private Key"
Product: Red Hat Satellite Reporter: Peter Ondrejka <pondrejk>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: high    
Version: 6.5.0CC: ahumbe, bkearney, ehelms, inecas, rchan, rjerrido
Target Milestone: ReleasedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-25 20:51:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Ondrejka 2018-11-22 11:38:53 UTC
Description of problem:

Satellite installation on fips enabled rhel 7.6 fails with:

[ INFO]  /Stage[main]/Certs::Ca/Ca[katello-server-ca]: Scheduling refresh of Certs_bootstrap_rpm[katello-ca-consumer-hostname.example.com]
[ERROR]  /Stage[main]/Certs::Ca/Privkey[/etc/pki/katello/private/katello-default-ca.key]: Could not evaluate: Execution of '/usr/bin/openssl rsa -in /root/ssl-build/katello-default-ca.key -out /root/ssl-build/katello-default-ca.key.tmp -passin file:/etc/pki/katello/private/katello-default-ca.pwd' returned 1: unable to load Private Key
[ERROR] 139738391898000:error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips:digest.c:256:

... (will attach log excrept)

Version-Release number of selected component (if applicable):
Satellite 6.5 snap 4, satellite-6.5.0-4.beta.el7sat.noarch

How reproducible:
always 

Additional info:
Does not occur on non-fips, does not occur during upgrade from previous snap

Comment 4 Peter Ondrejka 2018-11-26 17:33:35 UTC
How to reproduce:
- install satellite on a non-fips rhel machine
- enable fips mode on the rhel
- try to rename via satellite-change-hostname

The installer triggered by s-c-h fails as mentioned above at 
/usr/bin/openssl rsa -in /root/ssl-build/katello-default-ca.key -out /root/ssl-build/katello-default-ca.key.tmp -passin file:/etc/pki/katello/private/katello-default-ca.pwd' returned 1: unable to load Private Key

This does happen when satellite installed in a non-fips mode is being renamed in a fips mode. 

Perhaps the katello-default-ca.key from non-fips install is not good enough for fips, so if the installer could create the key valid for both cases, we would be good.

Comment 13 Bryan Kearney 2019-02-25 20:51:02 UTC
We are not planning to support upgrade to FIPS, so I am closing this out.