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
Either a boolean, in which case it controls whether we verify the server’s TLS certificate, or a string, in which case it must be a path to a CA bundle to use. Defaults to True.
I suggest rewording both statements, because as they stand they make figuring what went wrong with setting the correct CA bundle way harder than it should be:
Passing bool not only controls whether the certificate is verified, it also resets the root store to be verified against.
The default for the method does not behave like True - leaving it unspecified simply defers to the session, as it should.. session in turn may very well have verify=False.
This result means that libraries that opt to use the supposedly-default parameter value of True are doing something meaningfully different from those that use the actual-default parameter of None (typically: by not mentioning the parameter).
Docs currently state:
I suggest rewording both statements, because as they stand they make figuring what went wrong with setting the correct CA bundle way harder than it should be:
os.environprecedence, but I understand that one is currently #WONTFIX as per Session.verify=False ignored when REQUESTS_CA_BUNDLE environment variable is set #3829)Documentation appears to state
Actual Result
Reproduction Steps
This result means that libraries that opt to use the supposedly-default parameter value of True are doing something meaningfully different from those that use the actual-default parameter of None (typically: by not mentioning the parameter).
System Information
{ "chardet": { "version": "4.0.0" }, "charset_normalizer": { "version": "3.4.4" }, "cryptography": { "version": "" }, "idna": { "version": "3.3" }, "implementation": { "name": "CPython", "version": "3.10.12" }, "platform": { "release": "6.8.0-110-generic", "system": "Linux" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.33.1" }, "system_ssl": { "version": "30000020" }, "urllib3": { "version": "2.6.3" }, "using_charset_normalizer": false, "using_pyopenssl": false }