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 - JSS cannot be properly initialized after using another NSS-backed security provider
Summary: JSS cannot be properly initialized after using another NSS-backed security pr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: jss
Version: 8.4
Hardware: Unspecified
OS: All
unspecified
high
Target Milestone: rc
: ---
Assignee: Jack Magne
QA Contact: PKI QE
URL:
Whiteboard:
Depends On:
Blocks: 2184524 2087223 2087224
TreeView+ depends on / blocked
 
Reported: 2021-10-13 14:01 UTC by Chris "Ceiu" Rog
Modified: 2023-04-04 21:37 UTC (History)
8 users (show)

Fixed In Version: pki-core-10.6-8070020220601151133.6e5cea50
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2087223 2087224 (view as bug list)
Environment:
Last Closed: 2022-11-08 09:18:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-99648 0 None None None 2021-10-13 14:02:47 UTC
Red Hat Product Errata RHSA-2022:7470 0 None None None 2022-11-08 09:18:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.