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 2007029

Summary: Safenet SCP01 and Gemalto smart cards are not detected by p11tool on a RHEL 9.0 Client
Product: Red Hat Enterprise Linux 9 Reporter: Sneha Veeranki <sveerank>
Component: openscAssignee: Jakub Jelen <jjelen>
Status: CLOSED ERRATA QA Contact: Ivan Nikolchev <inikolch>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 9.0CC: aakkiang, alee, inikolch, jmagne
Target Milestone: rcKeywords: Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: opensc-0.22.0-2.el9 Doc Type: Bug Fix
Doc Text:
Cause: Upstream change caused regression in unenrolled card detection. Consequence: Unenrolled smart cards were not visible in ESC. Fix: The fix was implemented. Result: The unenrolled cards are visible in opensc and esc with special configuration.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:52:03 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:

Comment 1 Jakub Jelen 2021-09-23 09:57:31 UTC
Please, try to follow the steps outlined as Debugging smart card issues in the following article when reporting bugs:

https://access.redhat.com/articles/4253861

It would be also useful to note the cards ATR's to verify we are really talking about the same cards I have around.

It turned out I have only the gemalto cards now with the following ATR:

# opensc-tool --atr
Using reader with a card: OMNIKEY AG CardMan 3121 00 00
3b:95:95:40:ff:ae:01:03:00:00

It is not enrolled card so there is nothing that could be visible in p11tool. Or do you talk about enrolled cards?

For the card to be visible in esc, you need to modify its configuration file to have the ATR in opensc.conf if not yet present (the above one is not there).

Were these cards previously detected in RHEL 8.5 by esc or directly by OpenSC using the esc's configuration file like this?

OPENSC_CONF=/usr/lib64/esc-1.1.2/opensc.esc.conf pkcs11-tool -L

For me, it returns "token not recognized" for some reason, but I did not find any evidence of this working in the previous version of opensc either.

Comment 3 Jakub Jelen 2021-09-24 08:22:05 UTC
OK, first issue is certainly in esc, which does not ship the correct opensc.esc.conf. The one from RHEL8 has much more ATRs and fixed a lot of typos so that is certainly something to handle on the esc side. I filled a bug #2007544 to handle this.

The other issue is that the opensc reports "(token not recognized)" instead of "uninitialized" even if I copy RHEL8 configuration file to RHEL9 machine. I will investigate what is going on there.

Comment 4 Jakub Jelen 2021-09-30 14:14:19 UTC
FYI, the upstream PR is approved, but we will have to fix it in RHEL9 GA. The PR also provides example how I test the issue in upstream, which you could replicate either with manual testing or with jcardsim as in the upstream, but that might be overkill right now.

Comment 10 errata-xmlrpc 2022-05-17 15:52:03 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 (new packages: opensc), 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-2022:3933