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
Opened by lilydjwg (lilydjwg) - Monday, 13 July 2020, 04:33 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 13 July 2020, 16:43 GMT
|
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
Monday, 13 July 2020, 16:43 GMT
Reason for closing: Fixed
Additional comments about closing: python-httpx 0.13.3-5