FS#67260 - [python-httpx] use system root certificates

Attached to Project: Community Packages
Opened by lilydjwg (lilydjwg) - Monday, 13 July 2020, 04:33 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 13 July 2020, 16:43 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The python-httpx package uses the python-certifi package for its root certificates. This means that whatever CAs the user chooses to trust or distrust at the system level will not take effect. Could you make it use the system one like python-requests, python-pip, mitmproxy, python-google-auth, python-telegram-bot, python-dephell and python-elasticsearch have done? The following code should suffice:

sed -i '/certifi/d' setup.py
sed -e '/import certifi/d' \
-e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-i httpx/_config.py


Additional info:
* python-httpx 0.13.3-4
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 13 July 2020, 16:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-httpx 0.13.3-5

Loading...