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 1814383 - librepo does not do TLS certificate revocation checking
Summary: librepo does not do TLS certificate revocation checking
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: librepo
Version: 8.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: amatej
QA Contact: Jan Blazek
Mariya Pershina
URL:
Whiteboard:
Depends On: 1951407 1951409
Blocks: 1825061 1940119
TreeView+ depends on / blocked
 
Reported: 2020-03-17 18:13 UTC by Steve Grubb
Modified: 2021-11-10 08:48 UTC (History)
7 users (show)

Fixed In Version: librepo-1.14.0-1.el8
Doc Type: Enhancement
Doc Text:
.`sslverifystatus` has been added to `dnf` configuration With this update, when `sslverifystatus` option is enabled, `dnf` checks each server certificate revocation status using the *Certificate Status Request* TLS extension (OCSP stapling). As a result, when a revoked certificate is encountered, `dnf` refuses to download from its server.
Clone Of:
Environment:
Last Closed: 2021-11-09 19:45:07 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4429 0 None None None 2021-11-09 19:45:18 UTC

Description Steve Grubb 2020-03-17 18:13:07 UTC
Description of problem:
Librepo's use of libcurl does not seem to enable certificate revocation checking. libcurl has an option, CURLOPT_SSL_VERIFYSTATUS, but it defaults to off. Searching librepo doesn't seem to set any SSL options.

For common criteria purposes, we need dnf via librepo to do certificate revocation checking.

Comment 1 amatej 2020-03-27 09:35:40 UTC
The libcurl option CURLOPT_SSL_VERIFYSTATUS supports only OCSV stapling method of certificate revocation checking, is this enough? I am asking because from my small testing I found out that not all servers with repositories support this.
If it is enough we could for example add a new configuration option (that defaults to off) which would ensure that repositories that have it enabled use curl with CURLOPT_SSL_VERIFYSTATUS.

Comment 2 Steve Grubb 2020-03-27 13:26:54 UTC
How about the redhat servers? Do they support OSCP stapling? If they do not, I will open a ticket to get that fixed. Enabling the option should be enough to pass certification. That was the only problem they found with TLS as used by dnf.

Comment 3 amatej 2020-03-30 08:20:58 UTC
I tried using librepo with CURLOPT_SSL_VERIFYSTATUS enabled on a rhen-8.2.0 machine with rhel-8-for-x86_64-appstream-htb-rpms repo (https://cdn.redhat.com/content/htb/rhel8/8/x86_64/appstream/os) and it seems that OCSP stapling is not enabled. But I am not sure whether you mean these redhat servers.

Another option would be to implement going to the certificate authority for the list of revoked certificates and checking it manually, but that seems to be fairly complicated.

Comment 4 Steve Grubb 2020-03-30 13:11:50 UTC
When you say its not enabled, which end are you speaking of? The client side or the server side?

Comment 5 amatej 2020-03-30 13:23:27 UTC
I meant server side doesn't have it enabled (doesn't support it). The client side is controlled by CURLOPT_SSL_VERIFYSTATUS in librepo which I set manually.

Comment 22 amatej 2021-02-01 15:03:38 UTC
Since we are still waiting I am moving this to 8.5.0.

Comment 49 errata-xmlrpc 2021-11-09 19:45:07 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 (librepo 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-2021:4429


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