Bug 1596525
| Summary: | Address ECC profile overrides [rhel-7.5.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Oneata Mircea Teodor <toneata> |
| Component: | pki-core | Assignee: | Christina Fu <cfu> |
| Status: | CLOSED ERRATA | QA Contact: | Asha Akkiangady <aakkiang> |
| Severity: | urgent | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
| Priority: | urgent | ||
| Version: | 7.6 | CC: | akahat, cfu, edewata, mharmsen, mmuehlfe, msauton |
| Target Milestone: | rc | Keywords: | TestCaseProvided, ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | 1550742 | Environment: | |
| Last Closed: | 2018-08-16 14:20:17 UTC | Type: | --- |
| 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: | 1550742 | ||
| Bug Blocks: | |||
|
Description
Oneata Mircea Teodor
2018-06-29 07:46:13 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
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. 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. 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 |