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 1324060 - Installers fail when there are multiple versions of the same certificate
Summary: Installers fail when there are multiple versions of the same certificate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Kaleem
URL:
Whiteboard:
Depends On: 1321092
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-05 12:35 UTC by Marcel Kolaja
Modified: 2016-05-12 09:58 UTC (History)
7 users (show)

Fixed In Version: ipa-4.2.0-15.el7_2.13
Doc Type: Bug Fix
Doc Text:
Server or replica installation sometimes failed when multiple versions of the same certificate, such as before and after renewal, were available to the installer. The installation no longer fails in this situation.
Clone Of: 1321092
Environment:
Last Closed: 2016-05-12 09:58:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
console.log (18.26 KB, text/plain)
2016-04-20 12:06 UTC, Abhijeet Kasurde
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1036 0 normal SHIPPED_LIVE ipa bug fix update 2016-05-12 13:53:44 UTC

Description Marcel Kolaja 2016-04-05 12:35:49 UTC
This bug has been copied from bug #1321092 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 4 Kaleem 2016-04-19 06:49:27 UTC
Please provide the steps to verify this.

Comment 5 Jan Cholasta 2016-04-20 10:22:05 UTC
1. Create a new empty NSS database:

server# mkdir tmpdb
server# certutil -N -d tmpdb
Enter a password which will be used to encrypt your keys.
The password should be at least 8 characters long,
and should contain at least one non-alphabetic character.

Enter new password: 
Re-enter password: 


2. Create a new CA certificate:

server# certutil -S -d tmpdb -n ca -s 'CN=Test CA' -t C,, -x -m 1 -2
Enter Password or Pin for "NSS Certificate DB":

A random seed must be generated that will be used in the
creation of your key.  One of the easiest ways to create a
random seed is to use the timing of keystrokes on a keyboard.

To begin, type keys on the keyboard until this progress meter
is full.  DO NOT USE THE AUTOREPEAT FUNCTION ON YOUR KEYBOARD!


Continue typing until the progress meter is full:

|************************************************************|

Finished.  Press enter to continue: 


Generating key.  This may take a few moments...

Is this a CA certificate [y/N]?
y
Enter the path length constraint, enter to skip [<0 for unlimited path]: > 
Is this a critical extension [y/N]?
y


3. Create a new server certificate for server.example.com and export it to server.p12:

server# certutil -S -d tmpdb -n server -s 'CN=server.example.com' -t ,, -c ca -m 2
Enter Password or Pin for "NSS Certificate DB":

A random seed must be generated that will be used in the
creation of your key.  One of the easiest ways to create a
random seed is to use the timing of keystrokes on a keyboard.

To begin, type keys on the keyboard until this progress meter
is full.  DO NOT USE THE AUTOREPEAT FUNCTION ON YOUR KEYBOARD!


Continue typing until the progress meter is full:

|************************************************************|

Finished.  Press enter to continue: 


Generating key.  This may take a few moments...

server# pk12util -o server.p12 -n server -d tmpdb
Enter Password or Pin for "NSS Certificate DB":
Enter password for PKCS12 file: 
Re-enter password: 
pk12util: PKCS12 EXPORT SUCCESSFUL


4. Install CA-less IPA server using server.p12:

server# ipa-server-install --{dirsrv,http}-cert-file=server.p12
...


5. Renew the CA certificate:

server# certutil -S -d tmpdb -n ca -s 'CN=Test CA' -t C,, -k ca -x -m 3 -2
Enter Password or Pin for "NSS Certificate DB":
Is this a CA certificate [y/N]?
y
Enter the path length constraint, enter to skip [<0 for unlimited path]: > 
Is this a critical extension [y/N]?
y


6. Create a new server certificate for replica.example.com and export it to replica.p12:

server# certutil -S -d tmpdb -n replica -s 'CN=replica.example.com' -t ,, -c ca -m 4
Enter Password or Pin for "NSS Certificate DB":

A random seed must be generated that will be used in the
creation of your key.  One of the easiest ways to create a
random seed is to use the timing of keystrokes on a keyboard.

To begin, type keys on the keyboard until this progress meter
is full.  DO NOT USE THE AUTOREPEAT FUNCTION ON YOUR KEYBOARD!


Continue typing until the progress meter is full:

|************************************************************|

Finished.  Press enter to continue: 


Generating key.  This may take a few moments...

server# pk12util -o replica.p12 -n replica -d tmpdb
Enter Password or Pin for "NSS Certificate DB":
Enter password for PKCS12 file: 
Re-enter password: 
pk12util: PKCS12 EXPORT SUCCESSFUL


7. Prepare IPA replica using replica.p12:

server# ipa-replica-prepare replica.example.com --{dirsrv,http}-cert-file=replica.p12
...

This command must not fail with:
(SEC_ERROR_LIBRARY_FAILURE) security library failure.

Comment 6 Abhijeet Kasurde 2016-04-20 12:06:08 UTC
Verified using IPA version ::

ipa-server-4.2.0-15.el7_2.15.x86_64

Please see attachment for console.log and steps used for verification.

Comment 7 Abhijeet Kasurde 2016-04-20 12:06:29 UTC
Created attachment 1149051 [details]
console.log

Comment 9 errata-xmlrpc 2016-05-12 09:58:51 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, 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://rhn.redhat.com/errata/RHBA-2016-1036.html


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