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 2013674

Summary: JSS cannot be properly initialized after using another NSS-backed security provider
Product: Red Hat Enterprise Linux 8 Reporter: Chris "Ceiu" Rog <crog>
Component: jssAssignee: Jack Magne <jmagne>
Status: CLOSED ERRATA QA Contact: PKI QE <bugzilla-pkiqe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.4CC: aakkiang, ckelley, jmagne, mharmsen, nmoumoul, pcech, rrelyea, skhandel
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: pki-core-10.6-8070020220601151133.6e5cea50 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2087223 2087224 (view as bug list) Environment:
Last Closed: 2022-11-08 09:18:20 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: 2087223, 2087224, 2184524    

Description Chris "Ceiu" Rog 2021-10-13 14:01:01 UTC
Description of problem:
When attempting to initialize JSS after another component of the application uses another security provider which is also backed by NSS (such as the JDK's newer PK11 security provider), JSS will will inherit the properties and configuration of the first provider to initialize the underlying NSS, such as read-only tokens/slots when JSS is attempted to be initialized in read-write mode.


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


How reproducible: 100%


Steps to Reproduce:
1. Use a security provider which is backed by NSS other than JSS
2. Initialize JSS with a configuration that differs from the first security provider (read-only vs read-write is a very obvious config to use and examine)
3. Fetch a CryptoToken instance from the JSS CryptoManager and examine its properties. In the case of its writability, it will have the mode set by the first security provider rather than that set during JSS initialization.

Actual results:
JSS's CryptoToken inherits the configuration of the first security provider's NSS initialization

Expected results:
JSS's CryptoToken is configured as expected from the configuration provided during JSS initialization

Additional info:
This scenario may be common for Java-based web applications, where the servlet engine (Tomcat) may do its own crypto operations using non-JSS security providers.

Comment 22 errata-xmlrpc 2022-11-08 09:18:20 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 (Important: pki-core:10.6 and pki-deps:10.6 security and bug fix 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-2022:7470