Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1622651

Summary: pki-server ca-cert-chain-export throws wrong message while generating cert chain.
Product: Red Hat Enterprise Linux 8 Reporter: Pritam Singh <prisingh>
Component: pki-coreAssignee: RHCS Maintainers <rhcs-maint>
Status: CLOSED UPSTREAM QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: ascheel, edewata, mharmsen
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-17 04:34:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pritam Singh 2018-08-27 16:41:24 UTC
Description of problem:

While creating Certificate chain using pki-server ca-cert-chain-export command throws false positive or wrong message in output.

Version-Release number of selected component (if applicable):

PKI Command-Line Interface 10.5.9-6.el7

How reproducible:

always

Steps to Reproduce:

1. Check the Existing Certificates of alias database:

# certutil -L -d /var/lib/pki/pki-sdCA/alias/

Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI

auditSigningCert cert-pki-sdCA CA                            u,u,Pu
Server-Cert cert-pki-sdCA                                    u,u,u
CA Signing Certificate - rhts.eng.bos.redhat.com Security Domain CT,C,C
CA Signing Certificate - rhts.eng.bos.redhat.com Security Domain #2 CT,C,C
caSigningCert cert-pki-sdCA CA                               CTu,Cu,Cu
ocspSigningCert cert-pki-sdCA CA                             u,u,u
subsystemCert cert-pki-sdCA                                  u,u,u


2.Execute the Following Query to generate the Certificate chain:

# pki-server ca-cert-chain-export --instance pki-sdCA --pkcs12-file /tmp/pki-server.p12 --pkcs12-password Secret123

3. It will generate the following output :

Output:
---------------
Export complete
---------------
-------------------------------------------------
Deleted certificate "subsystemCert cert-pki-sdCA"
-------------------------------------------------

4. Again check the alias database for changes reflect:

# certutil -L -d /var/lib/pki/pki-sdCA/alias/

Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI

auditSigningCert cert-pki-sdCA CA                            u,u,Pu
Server-Cert cert-pki-sdCA                                    u,u,u
CA Signing Certificate - rhts.eng.bos.redhat.com Security Domain CT,C,C
CA Signing Certificate - rhts.eng.bos.redhat.com Security Domain #2 CT,C,C
caSigningCert cert-pki-sdCA CA                               CTu,Cu,Cu
ocspSigningCert cert-pki-sdCA CA                             u,u,u
subsystemCert cert-pki-sdCA                                  u,u,u


Actual results:

pki-server.p12 certificate is generating with wrong or false positive message.

Expected results:

pki-server.p12 certificate chain should generate without any exception.

Additional info:

Comment 2 Endi Sukma Dewata 2020-02-17 04:34:08 UTC
This is a misleading output message, but the functionality itself
seems to be fine. This issue will be addressed upstream:
https://pagure.io/dogtagpki/issue/3120