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 1659440 - 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: python27-2.7-module
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Charalampos Stratakis
QA Contact: Anna Khaitovich
URL:
Whiteboard:
Depends On: 1655253 1655255 1659550 1659551
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-14 11:36 UTC by Charalampos Stratakis
Modified: 2019-06-14 01:20 UTC (History)
3 users (show)

Fixed In Version: python2-pip-9.0.3-12.module+el8+2540+b19c9b35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1655255
Environment:
Last Closed: 2019-06-14 01:20:02 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Charalampos Stratakis 2018-12-14 11:36:05 UTC
+++ This bug was initially created as a clone of Bug #1655255 +++

+++ 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.

--- Additional comment from Charalampos Stratakis on 2018-12-14 01:54:53 CET ---

We'll also need to fix virtualenv

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

Comment 2 Anna Khaitovich 2019-01-28 13:18:08 UTC
$ rpm -qa python2-pip
python2-pip-9.0.3-12.module+el8+2540+b19c9b35.noarch

$ rpm -q --provides python2-pip
bundled(python2dist(appdirs)) = 1.4.0
bundled(python2dist(cachecontrol)) = 0.11.7
bundled(python2dist(chardet)) = 2.3.0
bundled(python2dist(colorama)) = 0.3.7
bundled(python2dist(distlib)) = 0.2.4
bundled(python2dist(distro)) = 1.0.1
bundled(python2dist(html5lib)) = 1.0b10
bundled(python2dist(ipaddress) = 1.0.17
bundled(python2dist(lockfile)) = 0.12.2
bundled(python2dist(packaging)) = 16.8
bundled(python2dist(progress)) = 1.2
bundled(python2dist(pyparsing)) = 2.1.10
bundled(python2dist(requests)) = 2.11.1
bundled(python2dist(retrying)) = 1.3.3
bundled(python2dist(setuptools)) = 28.8.0
bundled(python2dist(six)) = 1.10.0
bundled(python2dist(urllib3)) = 1.16
bundled(python2dist(webencodings)) = 0.5
python2-pip = 9.0.3-12.module+el8+2540+b19c9b35
python2.7dist(pip) = 9.0.3
python2dist(pip) = 9.0.3


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