-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for injecting truststore.SSLContext into the ssl module
- Loading branch information
1 parent
63dc9e1
commit fcd59c8
Showing
12 changed files
with
513 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
"""Verify certificates using OS trust stores""" | ||
"""Verify certificates using OS trust stores. This is useful when your system contains | ||
custom certificate authorities such as when using a corporate proxy or using test certificates. | ||
Supports macOS, Windows, and Linux (with OpenSSL). | ||
""" | ||
|
||
import sys as _sys | ||
|
||
if _sys.version_info < (3, 10): | ||
raise ImportError("truststore requires Python 3.10 or later") | ||
del _sys | ||
|
||
from ._api import SSLContext # noqa: E402 | ||
from ._api import SSLContext, extract_from_ssl, inject_into_ssl # noqa: E402 | ||
|
||
__all__ = ["SSLContext"] | ||
del _api, _sys # type: ignore[name-defined] # noqa: F821 | ||
|
||
__all__ = ["SSLContext", "inject_into_ssl", "extract_from_ssl"] | ||
__version__ = "0.5.0" |
Oops, something went wrong.