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 1869683

Summary: p11_child: default value of ocsp_dgst == sha256 doesn't conform RFC5019 and has to be changed to SHA-1
Product: Red Hat Enterprise Linux 8 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Alexey Tikhonov <atikhono>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: g63it, grajaiya, jhrozek, lslebodn, mzidek, pbrezina, spoore, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.3.0-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:05:29 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 Alexey Tikhonov 2020-08-18 13:36:22 UTC
The change of default OCSP digest to SHA256 introduced in bz 1718478 breaks out of the box(*) compatibility with RFC5019 compliant OCSP responders.

*) while it's possible to configure SHA-1 explicitly, this is not very handy (for example see bz 1834664)


Moreover, as discussed at https://github.com/SSSD/sssd/pull/837#issuecomment-672831519 , SHA-1 used in this context *is* FIPS140 compliant.


So the default should be changed back to SHA-1.

Comment 1 Alexey Tikhonov 2020-08-18 13:38:42 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/5280

Comment 3 Pavel Březina 2020-08-21 08:51:00 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5280

* `master`
    * 10366b4ee8c01ea20d908102e92d52fdeda168c3 - p11_child: switch default ocsp_dgst to sha1

Comment 6 Scott Poore 2020-08-24 16:34:02 UTC
Verified after correcting automated tests 0001 and 0006 to expect SHA-1 instead of sha256.

Version ::

sssd-2.3.0-8.el8.x86_64

Results ::

=================== test_0001 ====================

FUNCTION: add_sssd_cfg
Created SSSD Config:
SSSD Config File name:  /etc/sssd/conf.d/sssd_ocsp.conf
SSSD Settings:
[sssd]

METHOD: MyTshark.start: 

Running tshark at pid 39957
FUNCTION: wait_for_user
FOUND USER: ipauser1
uid=103000031(ipauser1) gid=103000031(ipauser1) groups=103000031(ipauser1)


0
Sat Aug 22 12:59:37 CDT 2020

['expect', '-f', '/tmp/ipa_sc_test.d/66sSBH4p3D.exp']
spawn su - ipauser1 -c su - ipauser1 -c "echo success > /tmp/ipa_sc_test.d/ZBEM2U6JVP.output"
PIN for MyEID (sctest): 


METHOD: MyTshark.stop: 

Killing pid 39957
METHOD: MyTshark.search: 

ocsp hashAlgorithm SHA-1 2
FOUND:                     hashAlgorithm (SHA-1)
FOUND:                             hashAlgorithm (SHA-1)
PASSED
test_4001_misc.py::TestSssdOcspDigest::test_0002 
=================== test_0002 ====================

FUNCTION: add_sssd_cfg
Created SSSD Config:
SSSD Config File name:  /etc/sssd/conf.d/sssd_ocsp.conf
SSSD Settings:
[sssd]
certificate_verification = ocsp_dgst=sha256

METHOD: MyTshark.start: 

Running tshark at pid 40326
FUNCTION: wait_for_user
FOUND USER: ipauser1
uid=103000031(ipauser1) gid=103000031(ipauser1) groups=103000031(ipauser1)


0
Sat Aug 22 13:00:12 CDT 2020

['expect', '-f', '/tmp/ipa_sc_test.d/KUfmX0FS6i.exp']
spawn su - ipauser1 -c su - ipauser1 -c "echo success > /tmp/ipa_sc_test.d/0FQUC6MEPK.output"
PIN for MyEID (sctest): 


METHOD: MyTshark.stop: 

Killing pid 40326
METHOD: MyTshark.search: 

ocsp hashAlgorithm sha256 2
FOUND:                     hashAlgorithm (sha256)
FOUND:                             hashAlgorithm (sha256)
PASSED
test_4001_misc.py::TestSssdOcspDigest::test_0003 
=================== test_0003 ====================

FUNCTION: add_sssd_cfg
Created SSSD Config:
SSSD Config File name:  /etc/sssd/conf.d/sssd_ocsp.conf
SSSD Settings:
[sssd]
certificate_verification = ocsp_dgst=sha384

METHOD: MyTshark.start: 

Running tshark at pid 40698
FUNCTION: wait_for_user
FOUND USER: ipauser1
uid=103000031(ipauser1) gid=103000031(ipauser1) groups=103000031(ipauser1)


0
Sat Aug 22 13:00:46 CDT 2020

['expect', '-f', '/tmp/ipa_sc_test.d/Wq1B3yvIGr.exp']
spawn su - ipauser1 -c su - ipauser1 -c "echo success > /tmp/ipa_sc_test.d/C9C26N9CSF.output"
PIN for MyEID (sctest): 


METHOD: MyTshark.stop: 

Killing pid 40698
METHOD: MyTshark.search: 

ocsp hashAlgorithm sha384 2
FOUND:                     hashAlgorithm (sha384)
FOUND:                             hashAlgorithm (sha384)
PASSED
test_4001_misc.py::TestSssdOcspDigest::test_0004 
=================== test_0004 ====================

FUNCTION: add_sssd_cfg
Created SSSD Config:
SSSD Config File name:  /etc/sssd/conf.d/sssd_ocsp.conf
SSSD Settings:
[sssd]
certificate_verification = ocsp_dgst=sha512

METHOD: MyTshark.start: 

Running tshark at pid 41081
FUNCTION: wait_for_user
FOUND USER: ipauser1
uid=103000031(ipauser1) gid=103000031(ipauser1) groups=103000031(ipauser1)


0
Sat Aug 22 13:01:19 CDT 2020

['expect', '-f', '/tmp/ipa_sc_test.d/Zhu3VOAQ63.exp']
spawn su - ipauser1 -c su - ipauser1 -c "echo success > /tmp/ipa_sc_test.d/KQJMNGDDTD.output"
PIN for MyEID (sctest): 


METHOD: MyTshark.stop: 

Killing pid 41081
METHOD: MyTshark.search: 

ocsp hashAlgorithm sha512 2
FOUND:                     hashAlgorithm (sha512)
FOUND:                             hashAlgorithm (sha512)
PASSED
test_4001_misc.py::TestSssdOcspDigest::test_0005 
=================== test_0005 ====================

FUNCTION: add_sssd_cfg
Created SSSD Config:
SSSD Config File name:  /etc/sssd/conf.d/sssd_ocsp.conf
SSSD Settings:
[sssd]
certificate_verification = ocsp_dgst=sha1

METHOD: MyTshark.start: 

Running tshark at pid 41451
FUNCTION: wait_for_user
FOUND USER: ipauser1
uid=103000031(ipauser1) gid=103000031(ipauser1) groups=103000031(ipauser1)


0
Sat Aug 22 13:01:53 CDT 2020

['expect', '-f', '/tmp/ipa_sc_test.d/WRobXR1FBm.exp']
spawn su - ipauser1 -c su - ipauser1 -c "echo success > /tmp/ipa_sc_test.d/SNBJ3L5CP1.output"
PIN for MyEID (sctest): 


METHOD: MyTshark.stop: 

Killing pid 41451
METHOD: MyTshark.search: 

ocsp hashAlgorithm SHA-1 2
FOUND:                     hashAlgorithm (SHA-1)
FOUND:                             hashAlgorithm (SHA-1)
PASSED
test_4001_misc.py::TestSssdOcspDigest::test_0006 
=================== test_0006 ====================

FUNCTION: add_sssd_cfg
Created SSSD Config:
SSSD Config File name:  /etc/sssd/conf.d/sssd_ocsp.conf
SSSD Settings:
[sssd]
certificate_verification = ocsp_dgst=bad256

METHOD: MyTshark.start: 

Running tshark at pid 41821
FUNCTION: wait_for_user
FOUND USER: ipauser1
uid=103000031(ipauser1) gid=103000031(ipauser1) groups=103000031(ipauser1)


0
Sat Aug 22 13:02:26 CDT 2020

['expect', '-f', '/tmp/ipa_sc_test.d/hEawnFJvnh.exp']
spawn su - ipauser1 -c su - ipauser1 -c "echo success > /tmp/ipa_sc_test.d/CPR3LJGUM7.output"
PIN for MyEID (sctest): 


METHOD: MyTshark.stop: 

Killing pid 41821
METHOD: MyTshark.search: 

ocsp hashAlgorithm SHA-1 2
FOUND:                     hashAlgorithm (SHA-1)
FOUND:                             hashAlgorithm (SHA-1)
PASSED
session_teardown


=========================================================== 6 passed in 290.08 seconds ============================================================

Comment 9 errata-xmlrpc 2020-11-04 02:05:29 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-2020:4569