-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use truststore by default, add '--use-deprecated=legacy-certs' to dis…
…able
- Loading branch information
1 parent
18c0a7f
commit 813bc8f
Showing
11 changed files
with
369 additions
and
138 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"] | ||
__version__ = "0.5.0" | ||
del _api, _sys # type: ignore[name-defined] # noqa: F821 | ||
|
||
__all__ = ["SSLContext", "inject_into_ssl", "extract_from_ssl"] | ||
__version__ = "0.6.0" |
Oops, something went wrong.