httpie-cli/httpie
Adam Williamson fd30c4ef62
Explicitly load default certificates when creating SSL context (#1583) (#1596)
* Explicitly load default certificates when creating SSL context (#1583)

Requests prior to 2.32.3 always loaded the default (system-wide)
set of trusted certificates into custom SSL contexts. 2.32.3 no
longer does. This has broken a lot of users, but the fix is
moving slowly upstream due to security considerations - see
https://github.com/psf/requests/issues/6730 and
https://github.com/psf/requests/pull/6731 .

As suggested at
https://github.com/psf/requests/pull/6710#issuecomment-2137802782
this can be worked around by explicitly loading the default
certificates into the context. We check the method exists before
calling it just to be safe, it was added in Python 3.4.

Signed-off-by: Adam Williamson <awilliam@redhat.com>

* Drop the upper bound on the requests dependency again

As we can now work with requests 2.32.3+, we no longer need this
pin.

Signed-off-by: Adam Williamson <awilliam@redhat.com>

---------

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-01 09:37:11 -07:00
..
cli Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
internal Fix typos in comment lines (#1405) 2022-05-19 16:22:50 +03:00
legacy Implement support for multiple headers with the same name in sessions (#1335) 2022-04-03 06:48:31 -07:00
manager Remove redundant imports (#1466) 2023-01-15 11:35:36 -08:00
output Man page clean-up (#1508) 2023-05-22 11:56:30 -07:00
plugins Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
__init__.py Fix SSL connections by pinning the requests version to 2.31.0 2024-07-10 16:20:38 +02:00
__main__.py Rework __main__.py to follow best practices (#1124) 2021-08-06 16:57:19 +02:00
adapters.py Preserve individual headers with the same name on responses (#1208) 2021-11-24 15:41:37 -08:00
client.py Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
compat.py Single binary executables (#1330) 2022-04-14 08:11:12 -07:00
config.py Automatic release update warnings. (#1336) 2022-05-05 11:18:20 -07:00
context.py Fix log level display on newer Python 2023-05-19 21:51:32 +02:00
cookies.py Add support for sending secure cookies over localhost (#1327) 2022-04-14 07:42:05 -07:00
core.py Clean up and refactor nested JSON parsing & interpreting (#1440) 2022-10-01 03:38:19 -07:00
downloads.py Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
encoding.py Optimize encoding detection (#1243) 2021-12-23 11:05:58 -08:00
models.py Avoid override of headers by urllib3 when unset (#1502) 2023-05-19 23:53:26 +02:00
sessions.py Refactor palette (#1378) 2022-05-05 08:17:05 -07:00
ssl_.py Explicitly load default certificates when creating SSL context (#1583) (#1596) 2024-11-01 09:37:11 -07:00
status.py Cleanup 2019-12-02 00:58:10 +01:00
uploads.py Don't block users with the warning thread. (#1350) 2022-04-14 08:00:53 -07:00
utils.py Clean up and refactor nested JSON parsing & interpreting (#1440) 2022-10-01 03:38:19 -07:00