Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76709 - [python-pip] pip does not use system certificates

Attached to Project: Community Packages
Opened by Cezary Drożak (cdro) - Thursday, 01 December 2022, 10:58 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

While the `python-certifi` package replaces the vendored certificate with a link to the system certificate bundle, pip vendors certifi, so it does not apply to pip.

Additional info:
* python-pip version: 22.3.1-1

Steps to reproduce:
I am connected to the company's network, which uses FortiGate's SSL Inspection. This requires trusting a certificate issued by FortiGate. I'm not sure what would be the best way to reproduce outside of such network.

1. Trust the company's certificate using `trust anchor fortigate.crt` and run `update-ca-trust`
2. Packages using `python-certifi` now work correctly, but pip does not.
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:05 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/python-pip/issues/1
Comment by Toolybird (Toolybird) - Thursday, 01 December 2022, 20:41 GMT Comment by Cezary Drożak (cdro) - Friday, 02 December 2022, 12:33 GMT
I worked around the problem using the `PIP_CERT` environment variable:

export PIP_CERT=/etc/ssl/certs/ca-certificates.crt

I reported it as a bug, because I noticed that a symlink is already being created for `python-certifi`. I thought that it could be done for this package too.
Comment by Toolybird (Toolybird) - Friday, 02 December 2022, 21:24 GMT
Ok, good that you have a workaround. @dvzrv, do we need to fix anything here?

Loading...