Red Hat Bugzilla – Bug 1549632
Not able to generate certificate request with ECC using pki client-cert-request
Last modified: 2018-10-30 07:06:50 EDT
Description of problem: pki client-cert-request is not able to generate ECC certificate request. Version-Release number of selected component (if applicable): 10.5.1-9.el7 How reproducible: Always Steps to Reproduce: 1. pki -d /opt/pki/certdb/ -c SECret.123 -p 20080 -v client-cert-request --algorithm ecc --curve nistp256 "UID=ecc_user3,CN=ECC User3" Actual results: Server URI: http://pki1.example.com:20080 Client security database: /opt/pki/certdb Message format: null Command: client-cert-request --algorithm ecc --curve nistp256 "UID=ecc_user3,CN=ECC User3" Module: client Module: cert-request External command: /usr/bin/PKCS10Client -d /opt/pki/certdb -p SECret.123 -a ecc -l 1024 -o /opt/pki/certdb/pki-client-cert-request-6623069256481018602.csr -n "UID=ecc_user3,CN=ECC User3" java.lang.Exception: CSR generation failed at com.netscape.cmstools.client.ClientCertRequestCLI.generatePkcs10Request(ClientCertRequestCLI.java:408) at com.netscape.cmstools.client.ClientCertRequestCLI.execute(ClientCertRequestCLI.java:256) at com.netscape.cmstools.cli.CLI.execute(CLI.java:345) at com.netscape.cmstools.cli.CLI.execute(CLI.java:345) at com.netscape.cmstools.cli.MainCLI.execute(MainCLI.java:633) at com.netscape.cmstools.cli.MainCLI.main(MainCLI.java:669) Caused by: com.netscape.cmstools.cli.CLIException: External command failed. RC: 1 at com.netscape.cmstools.cli.CLI.runExternal(CLI.java:386) at com.netscape.cmstools.client.ClientCertRequestCLI.generatePkcs10Request(ClientCertRequestCLI.java:406) Expected results: ECC CSR should be generated Additional info:
Fixed in upstream https://github.com/dogtagpki/pki/commit/69434ec08442b92cab8c304caef98200ff71e8e2
commit 15911c8e65eb1543776a64f567ca3e281091e750 (HEAD -> DOGTAG_10_5_BRANCH, origin/DOGTAG_10_5_BRANCH, gerrit/DOGTAG_10_5_BRANCH) Author: Amol Kahat <akahat@redhat.com> 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@redhat.com> (cherry picked from commit 69434ec08442b92cab8c304caef98200ff71e8e2)
Testing Instructions: https://bugzilla.redhat.com/show_bug.cgi?id=1558919#c3
Marking MODIFIED; inherited from 7.5.z
I tested this BZ on 10.5.9-5.el7 version. I'm able to submit the certificate request with algo 'ec' and curve nistp256. ``` pki -d /opt/pki/certdb/ -c SECret.123 -p 20080 -v client-cert-request --algorithm ec --curve nistp256 "UID=ecc_user3,CN=ECC User3" ----------------------------- Submitted certificate request ----------------------------- Request ID: 47 Type: enrollment Request Status: pending Operation Result: success ``` Verifying this Bugzilla.
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:3195