Bug 1558919

Summary: Not able to generate certificate request with ECC using pki client-cert-request [rhel-7.5.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: pki-coreAssignee: Amol K <akahat>
Status: CLOSED ERRATA QA Contact: Asha Akkiangady <aakkiang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.5CC: aakkiang, akahat, edewata, mharmsen, msauton, rhcs-maint
Target Milestone: rcKeywords: TestCaseProvided, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pki-core-10.5.1-10.el7 Doc Type: No Doc Update
Doc Text:
This issue is occurred because of generatePkcs10Request method not able to map curve and length properly.
Story Points: ---
Clone Of: 1549632 Environment:
Last Closed: 2018-06-26 16:47:58 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: 1549632    
Bug Blocks:    

Description Oneata Mircea Teodor 2018-03-21 10:14:30 UTC
This bug has been copied from bug #1549632 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 2 Matthew Harmsen 2018-03-22 22:58:46 UTC
commit 15911c8e65eb1543776a64f567ca3e281091e750 (HEAD -> DOGTAG_10_5_BRANCH, origin/DOGTAG_10_5_BRANCH, gerrit/DOGTAG_10_5_BRANCH)
Author: Amol Kahat <akahat>
Date:   Tue Feb 27 19:56:31 2018 +0530

    Fixed BZ 1549632: Not able to generate certificate request
    with ECC using pki client-cert-request
    
    Change-Id: I23a51af2c9e9bcc62983332bee22fe3c56ce1409
    Signed-off-by: Amol Kahat <akahat>
    (cherry picked from commit 69434ec08442b92cab8c304caef98200ff71e8e2)

Comment 3 Amol K 2018-03-23 06:55:22 UTC
Testing instructions:

Run: pki -d /opt/pki/certdb -c Secret123 -v -p 20080 client-cert-request "UID=testuserEC1,CN=Test User EC1" --algorithm ec --curve nistp256 

It should generate certificate request with ECC.

Comment 5 Amol K 2018-04-10 09:06:39 UTC
I tested this Bugzilla on the pki 10.5.1-9.el7.

It works as expected. 

Now we are able to create the certificate request using 'ec' algorithm and curve nistp256.

Verifying this bug.

Comment 7 errata-xmlrpc 2018-06-26 16:47:58 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/RHSA-2018:1979