Skip to content

pip-system-certs does not work with requests version >= 2.32.0

Hi,

It looks like this library does not work with requests version 2.32.0. I get SSL validation errors on version 2.32.0 but when I pin the requests library to version 2.31.0 everything works again. Maybe the methods have changed so that the patching in this library does not work anymore.

It only seems to happen for me in a virtual environment.

Steps to reproduce:

python -m venv debug_venv
call debug_venv/Scripts/activate
pip install requests==2.31.0
pip install pip-system-certs
# This still works
python -c "import pip_system_certs.wrapt_requests; import requests; requests.get(\"https://selfsignedurl.domain\")"
pip install requests==2.32.0
pip install pip-system-certs
# Now it does not
python -c "import pip_system_certs.wrapt_requests; import requests; requests.get(\"https://selfsignedurl.domain\")"

On the last inovcation I get a SSL: CERTIFICATE_VERIFY_FAILED stacktrace. If needed I can send it privately but the above steps should work as well.

Edited by Nick Wemekamp