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 1927553

Summary: [Improvement] add SSSD support for more than one CRL PEM file name with parameters certificate_verification and crl_file
Product: Red Hat Enterprise Linux 9 Reporter: Marc Sauton <msauton>
Component: sssdAssignee: Iker Pedrosa <ipedrosa>
Status: CLOSED ERRATA QA Contact: Madhuri <mupadhye>
Severity: low Docs Contact:
Priority: low    
Version: 9.0CC: aboscatt, atikhono, dlavu, grajaiya, jhrozek, lslebodn, mupadhye, mzidek, pbrezina, sgadekar, thalman, tscherf, vvanhaft
Target Milestone: rcKeywords: Improvement, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.7.1-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:17: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:

Description Marc Sauton 2021-02-11 00:25:36 UTC
Description of problem:

the sssd.conf option crl_file=/PATH/TO/CRL/FILE provides support for one CRL PEM file ( ./src/p11_child/p11_child_common_utils.c )

there was a need for a configuration like this:

certificate_verification = no_ocsp,crl_file=/etc/sssd/pki/crl/combinedCRL4.pem,crl_file=/etc/sssd/pki/crl/combinedCRL3.pem,crl_file=/etc/sssd/pki/crl/combinedCRL2.pem

but only 1 CRL can be used:
certificate_verification = no_ocsp,crl_file=/etc/sssd/pki/crl/combinedCRL4.pem


Version-Release number of selected component (if applicable):
RHEL-8.3
sssd-2.3.0-9.el8.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Alexey Tikhonov 2021-08-31 18:36:25 UTC
At this stage this RFE should target RHEL9. Once/if implemented, backport to RHEL8 might be considered.

Comment 5 Alexey Tikhonov 2022-04-28 13:54:23 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6104

* `master`
    * e83e10652be58e13bf9b2f307f16ff018fbbc9b8 - p11_child: enable more than one CRL PEM file
* `sssd-2-7`
    * 84e3a8d6ac0e0a34588b3d3507d9189dccd971ee - p11_child: enable more than one CRL PEM file

Comment 10 Madhuri 2022-06-20 10:13:52 UTC
verified with

[root@ci-vm-10-0-139-177 test_ca]# rpm -qa sssd
sssd-2.7.1-2.el9.x86_64

verification steps:
1. Create localuser1 and also create the key and cert for localuser1
2. Setup virtual card and write key/cert to virtual smart card for localuser1
3. cp /opt/test_ca/crl/root.crl /etc/sssd/root1.crl
4. # revoke the cert previously used
openssl ca -config ca.cnf \
    -revoke /opt/test_ca/localuser1.crt -keyfile rootCA.key -cert rootCA.crt

openssl ca -config ca.cnf \
    -gencrl -out crl/root.crl

# backup crl file for use with sssd
cp /opt/test_ca/crl/root.crl /etc/sssd/root2.crl
5. Write new valid cert for user
6. write cert/key to virtual smartcard
sh -x init_virt_cacard.sh localuser1

# create updated crl
openssl ca -config ca.cnf \
    -gencrl -out crl/root.crl

cp /opt/test_ca/crl/root.crl /etc/sssd/root3.crl

7. Update the sssd.conf
certificate_verification = no_ocsp,crl_file=/etc/sssd/root1.crl,crl_file=/etc/sssd/root2.crl,crl_file=/etc/sssd/root3.crl

cat /etc/sssd/sssd.conf

[root@ci-vm-10-0-139-177 test_ca]# cat /etc/sssd/sssd.conf 
[sssd]
debug_level = 9
services = nss, pam
domains = shadowutils
certificate_verification = no_ocsp,crl_file=/etc/sssd/root1.crl,crl_file=/etc/sssd/root2.crl,crl_file=/etc/sssd/root3.crl

[nss]
debug_level = 9

[pam]
debug_level = 9
pam_cert_auth = True

[domain/shadowutils]
debug_level = 9
id_provider = files

[certmap/shadowutils/localuser1]
debug_level = 9
matchrule = <SUBJECT>.*CN=localuser1*

8. Check authentication of localuser1
[root@ci-vm-10-0-139-177 test_ca]# su - localuser1 -c 'su - localuser1 -c whoami'
PIN for localuser1: 
localuser1

Authentication is successful, thus from the above marking, this bug is verified.

Comment 12 errata-xmlrpc 2022-11-15 11:17: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 (sssd 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/RHBA-2022:8325