Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #6565; Add documentation to certs.where. #6617

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 17 additions & 2 deletions src/requests/certs.py
Expand Up @@ -11,7 +11,22 @@
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
from certifi import where
from certifi import where as _where


def where() -> str:
"""Returns the path of the default CA-certs bundle that is included with
the requests package. This function is essentially an alias of
`certify.where`.

Note that the default path is not necessarily the one being used, as it can
be overridden through ``requests.Session().verify``,
``requests.Session().merge_environment_settings``,
``requests.get(verify=...)``, and others.

"""
return _where()


if __name__ == "__main__":
print(where())
print(_where())