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 1596525 - Address ECC profile overrides [rhel-7.5.z]
Summary: Address ECC profile overrides [rhel-7.5.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.6
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Christina Fu
QA Contact: Asha Akkiangady
Marc Muehlfeld
URL:
Whiteboard:
Depends On: 1550742
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-29 07:46 UTC by Oneata Mircea Teodor
Modified: 2018-08-16 14:20 UTC (History)
6 users (show)

Fixed In Version: pki-core-10.5.1-14.el7_5
Doc Type: Enhancement
Doc Text:
This update enhances Certificate System to automatically apply ECC profiles when setting up a new root CA with ECC profiles using the *pkispawn* utility. As a result, administrators no longer have to set the profile overwrite parameters for ECC certificates as a workaround in the configuration file passed to *pkispawn* when setting up a root CA.
Clone Of: 1550742
Environment:
Last Closed: 2018-08-16 14:20:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2306 0 None None None 2018-08-16 14:20:37 UTC

Description Oneata Mircea Teodor 2018-06-29 07:46:13 UTC
This bug has been copied from bug #1550742 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 2 Christina Fu 2018-06-29 16:35:06 UTC
commit 3ad054342a08719cd80c618c2aa260210b418113 (ticket-2959-pkispawn-EC-profiles)
Author: Christina Fu <cfu>
Date:   Wed Jun 27 15:04:57 2018 -0700

    Ticket #2959 Address pkispawn ECC profile overrides
    
    This patch enables proper ECC profiles to be automatically applied during
    pkispawn.
    
    This patch would eliminate the need for the workaround documented here:
    http://www.dogtagpki.org/wiki/PKI_10.5_Pkispawn_ECC_Profile_Workaround
    
    The idea is to use the % replacement strings as part of the profile names
    in the default.cfg file for pkispawn,
    and change the profile names to mach the format. So for example:
    
    %(pki_admin_key_type)AdminCert.profile
    
    would either be translated to rsaAdminCert.profile or eccAdminCert.profile
    depending  on the value in pki_admin_key_type
    
    All 6 relevant profiles have been renamed per new convention.
    
    fixes https://pagure.io/dogtagpki/issue/2959
    
    Change-Id: I9a9f70e415438e0b4130294abb725c74fd6e1b95

Comment 3 Christina Fu 2018-06-29 17:56:40 UTC
Test procedure:

Take any existing successful test case for installing an ECC root CA.
LEAVE OUT the workaround step from:http://www.dogtagpki.org/wiki/PKI_10.5_Pkispawn_ECC_Profile_Workaround

Watch how without the workaround from url above, the installation should succeed.
Double check and make sure the following three certs are EC certs:
SSL server cert
subsystem cert
bootstrap admin's cert

Make sure the bootstrap admin cert can connect to agent page.

Comment 6 Amol K 2018-07-17 10:16:07 UTC
I tested this Bugzilla on 10.5.1-14.el7_5 version.

I tried the CA setup without the workaround, it worked as expected. I could see the SSL Server, Subsystem Cert and Admin Cert's algorithms are ECC.

```
  Serial Number: 0x1
  Subject DN: CN=CA Signing Certificate,OU=ECC_RootCA,O=example.com
  Issuer DN: CN=CA Signing Certificate,OU=ECC_RootCA,O=example.com
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: OID.1.2.840.10045.2.1
  Not Valid Before: Tue Jul 17 06:03:01 EDT 2018
  Not Valid After: Sat Jul 17 06:03:01 EDT 2038
  Issued On: Tue Jul 17 06:03:01 EDT 2018
  Issued By: system

  Serial Number: 0x3
  Subject DN: CN=pki1.example.com,OU=ECC_RootCA,O=example.com
  Issuer DN: CN=CA Signing Certificate,OU=ECC_RootCA,O=example.com
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: OID.1.2.840.10045.2.1
  Not Valid Before: Tue Jul 17 06:03:03 EDT 2018
  Not Valid After: Mon Jul 06 06:03:03 EDT 2020
  Issued On: Tue Jul 17 06:03:03 EDT 2018
  Issued By: system

  Serial Number: 0x4
  Subject DN: CN=Subsystem Certificate,OU=ECC_RootCA,O=example.com
  Issuer DN: CN=CA Signing Certificate,OU=ECC_RootCA,O=example.com
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: OID.1.2.840.10045.2.1
  Not Valid Before: Tue Jul 17 06:03:04 EDT 2018
  Not Valid After: Mon Jul 06 06:03:04 EDT 2020
  Issued On: Tue Jul 17 06:03:04 EDT 2018
  Issued By: system

  Serial Number: 0x6
  Subject DN: CN=PKI Administrator,E=caadmin,OU=ECC_RootCA,O=example.com
  Issuer DN: CN=CA Signing Certificate,OU=ECC_RootCA,O=example.com
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: OID.1.2.840.10045.2.1
  Not Valid Before: Tue Jul 17 06:03:05 EDT 2018
  Not Valid After: Mon Jul 06 06:03:05 EDT 2020
  Issued On: Tue Jul 17 06:03:05 EDT 2018
  Issued By: system

```

Marking this Bugzilla as verified.

Comment 8 errata-xmlrpc 2018-08-16 14:20:17 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://access.redhat.com/errata/RHBA-2018:2306


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