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 1857933

Summary: CA Installation is failing with ncipher v12.30 HSM
Product: Red Hat Enterprise Linux 8 Reporter: Pritam Singh <prisingh>
Component: pki-coreAssignee: Alex Scheel <ascheel>
Status: CLOSED ERRATA QA Contact: PKI QE <bugzilla-pkiqe>
Severity: medium Docs Contact: Florian Delehaye <fdelehay>
Priority: urgent    
Version: 8.3CC: aakkiang, ascheel, cfu, edewata, fdelehay, jmagne, lmanasko, lmcgarry, lmiksik
Target Milestone: rcKeywords: Regression, TestBlocker, TestCaseProvided
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pki-core-10.6-8030020200818221307.5ff1562f Doc Type: Known Issue
Doc Text:
.`pki-core` fails when `sslserver` certificates reside on the HSM `pki-core` now requires exporting the subsystem SSL certificate chain from the Network Security Services (NSS) database of the PKI instance, however the automatic export does not correctly handle token name qualifications for the `sslserver` certificate nickname. Therefore, if the certificates reside on the HSM, the NSS database is not opened using the specified HSM token and the export fails. As a consequence, installing PKI instances and using existing PKI instances fails with HSM-backed `sslserver` certificates.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:15:45 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:
Bug Depends On:    
Bug Blocks: 1842946    

Comment 8 Pritam Singh 2020-07-20 16:59:51 UTC
*** Bug 1857954 has been marked as a duplicate of this bug. ***

Comment 14 Dinesh Prasanth 2020-07-24 14:26:20 UTC
This is the correct commit information. Sorry for the noise!

> Commit information:
> ===================

commit 0c41ac72c47f34b3dc1293768e656a03d3d283b5
Author: Alexander Scheel <ascheel>
Date:   Tue Jul 21 16:09:44 2020 -0400

    Support exporting CA certificate from HSM installs
    
    When installing an installation with subsystem SSL certificate residing
    on the HSM, export will fail because the NSS DB isn't opened with the
    specified HSM token. When the subsystem SSL certificate resides on the
    HSM, when we go to export the CA certificate, we must explicitly specify
    this token.
    
    Otherwise, subsystem startup will fail with an error like:
    
        systemd[1]: Starting PKI Tomcat Server topology-02-CA...
        pki-server[72759]: Enter password for NHSM6000-OCS
        pki-server[72759]: ERROR: Certificate not found: NHSM6000-OCS:Server-Cert cert-topology-02-CA
        pki-server[72759]: ERROR: Command: pki -d /etc/pki/topology-02-CA/alias -C /tmp/tmpptxlpn4k/password.txt pkcs12-export --pkcs12 /tmp/tmp1idfd1am/sslserver.p12 --password-file /tmp/tmpc5y2bhjo/password.txt --no-key NHSM6000-OCS:Server-Cert cert-topology-02-CA
        systemd[1]: pki-tomcatd: Control process exited, code=exited status=255
        systemd[1]: pki-tomcatd: Failed with result 'exit-code'.
    
    This is related to the earlier PR enforcing certificate verification
    in PKIConnection, pr-#443.
    
    Resolves: rh-bz#1857933
    
    Signed-off-by: Alexander Scheel <ascheel>

Comment 31 Alex Scheel 2020-08-18 13:11:10 UTC
*** Bug 1847312 has been marked as a duplicate of this bug. ***

Comment 37 errata-xmlrpc 2020-11-04 03:15:45 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 (Moderate: pki-core:10.6 and pki-deps:10.6 security, bug fix, and enhancement update), 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-2020:4847