You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for asking. I downloaded the package using:
python3.11 -m pip install requests-ntlm
If I run :
import requests
from requests_ntlm import HttpNtlmAuth
r = 'https://xxx'
doc = requests.get(r, auth=HttpNtlmAuth('foo\\sbie',bar'))
I get:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='xxx', port=443): Max retries exceeded with url: xxx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
That is a sign that the CA bundle requests is using doesn't trust the certificate presented by https://xxx. That is unrelated to this library and isn't a sign we don't support Python 3.11. There's a good chance it's because your Python 3.8 install of requests is from the system package manager (dnf, apt, etc) and it has been configured to use the system CA bundle whereas installing requests from pip will use certifi which won't reference any of your system CA bundles. https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification shows how you can specify a custom CA trust path amongst other things.
Activity
jborean93 commentedon Apr 10, 2025
Are you getting an error message?
stefanbie commentedon Apr 14, 2025
Hi! Thanks for asking. I downloaded the package using:
python3.11 -m pip install requests-ntlm
If I run :
I get:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='xxx', port=443): Max retries exceeded with url: xxx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
The same code works when I use python 3.8
jborean93 commentedon Apr 14, 2025
That is a sign that the CA bundle requests is using doesn't trust the certificate presented by
https://xxx. That is unrelated to this library and isn't a sign we don't support Python 3.11. There's a good chance it's because your Python 3.8 install ofrequestsis from the system package manager (dnf, apt, etc) and it has been configured to use the system CA bundle whereas installing requests from pip will use certifi which won't reference any of your system CA bundles. https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification shows how you can specify a custom CA trust path amongst other things.stefanbie commentedon Apr 15, 2025
Thanks a lot for the clarification! Now I seem to have found a way to use the certificate :)