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.

Bug 883111

Summary: Need to pass FIPS-compatible cipher name to gpg
Product: Red Hat Enterprise Linux 7 Reporter: Rob Crittenden <rcritten>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED CURRENTRELEASE QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: jgalipea, mgregg, mkosek, nsoman
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-3.2.1-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:22:43 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:
Bug Depends On: 879047    
Bug Blocks:    

Description Rob Crittenden 2012-12-03 19:37:02 UTC
Description of problem:

ipa-replica-prepare creates file to be used to install a replica on another host. The contents of this file are encrypted using gpg. A valid FIPS cipher needs to be added to the command-line call, like --cipher-algo AES256.

Version-Release number of selected component (if applicable):

ipa-server-3.0.1-2.el7.x86_64

It fails with the error:

Ohhhh jeeee: cipher 3 not found
fatal error in libgcrypt, file misc.c, line 139, function _gcry_logv: internal error (fatal or bug)

Comment 1 Rob Crittenden 2012-12-03 21:53:02 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3282

Comment 2 Rob Crittenden 2012-12-05 18:03:39 UTC
The default cipher will be changed in gnupg2 in BZ 879047

Comment 3 Rob Crittenden 2012-12-06 14:31:43 UTC
Set requires on gnupg2 to 2.0.19-6.el7

Comment 5 Namita Soman 2013-02-28 15:54:55 UTC
Please add steps to verify

Comment 6 Rob Crittenden 2013-02-28 16:05:57 UTC
1. Install RHEL 7
2. Install IPA
3. Enable FIPS mode in the kernel via:

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-Federal_Standards_And_Regulations-Federal_Information_Processing_Standard.html

4. Run ipa-replica-prepare <any host>

You should get a prepared file rather than a gpg error.

Note that this is not sufficient to make IPA fully FIPS-compatible. The NSS databases need to manually be put into FIPS mode, but that is beyond the scope of this bug.

Comment 9 Michael Gregg 2014-01-09 00:48:54 UTC
Verified against ipa-server-3.3.3-8.el7.x86_64

:: [   PASS   ] :: Running 'ipa-replica-prepare -p Secret123 --ip-address=192.168.144.1              bz980148.testrelm.com > /tmp/tmpout.replicaBugCheck_bz980148 2>&1' (Expected 0, got 0)
Preparing replica for bz980148.testrelm.com from ipaqa64vmd.testrelm.com
Creating SSL certificate for the Directory Server
Creating SSL certificate for the dogtag Directory Server
Saving dogtag Directory Server port
Creating SSL certificate for the Web Server
Exporting RA certificate
Copying additional files
Finalizing configuration
Packaging replica information into /var/lib/ipa/replica-info-bz980148.testrelm.com.gpg
Adding DNS records for bz980148.testrelm.com
Using reverse zone 144.168.192.in-addr.arpa.
The ipa-replica-prepare command was successful

Comment 10 Ludek Smid 2014-06-13 11:22:43 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Comment 12 Michael Gregg 2014-07-09 18:21:04 UTC
I omitted a set-up step.

After I installed IPA, I enabled FIPS by running the following:

yum install dracut-fips
dracut -f
added "fips=1" to the kernel boot line.