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 1655255 - pip is using bundled certifi and a bundled root certificate
Summary: pip is using bundled certifi and a bundled root certificate
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python36-3.6-module
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Python Maintainers
QA Contact: Maryna Nalbandian
URL:
Whiteboard:
Depends On: 1655253
Blocks: 1659440
TreeView+ depends on / blocked
 
Reported: 2018-12-01 23:30 UTC by Miro Hrončok
Modified: 2020-02-21 14:58 UTC (History)
6 users (show)

Fixed In Version: python-pip-9.0.3-13.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1655253
: 1659440 1659550 (view as bug list)
Environment:
Last Closed: 2019-06-14 00:51:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
dist git patch for python-virtualenv (5.78 KB, patch)
2018-12-14 12:00 UTC, Miro Hrončok
no flags Details | Diff

Description Miro Hrončok 2018-12-01 23:30:33 UTC
+++ This bug was initially created as a clone of Bug #1655253 +++

In the Fedora's python-certifi package, we patch the logic to not use the bundled root certificate, but the system one instead:

https://src.fedoraproject.org/rpms/python-certifi/blob/master/f/certifi-2018.10.15-use-system-cert.patch

https://src.fedoraproject.org/rpms/python-certifi/blob/f27/f/python-certifi.spec#_71 (using f27 branch here to have a stable line number)

python-pip bundles it's own certifi (and for multiple reasons we don't unbundle stuff from pip) on RHEL 8. We should make sure to apply the same patch.

certifi is a (rather insecure) hack for platforms that don't have a good central location for the root certificates, we should not be using their pem certificate from pip.

Comment 1 Charalampos Stratakis 2018-12-14 00:54:53 UTC
We'll also need to fix virtualenv

https://github.com/pypa/virtualenv/pull/1252

Comment 2 Miro Hrončok 2018-12-14 12:00:08 UTC
Created attachment 1514332 [details]
dist git patch for python-virtualenv

I wasn't able to push to my fork.


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