Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-107361: strengthen default SSL context flags#112389

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
f0e262e
gh-107361: strengthen default SSL context flags
woodruffwNov 25, 2023
4782048
add news entry
woodruffwNov 25, 2023
732b953
ssl: expand comment
woodruffwNov 25, 2023
15c0313
ssl.rst: further explain new X509 flags
woodruffwNov 29, 2023
2aceb81
whatsnew: add ssl.create_default_context changes
woodruffwNov 29, 2023
eb2c6e4
gitattributes: mark certdata as generated
woodruffwNov 29, 2023
668803c
gitattributes: avoid {} glob syntax
woodruffwNov 29, 2023
da318a6
Update Doc/library/ssl.rst
woodruffwDec 1, 2023
4ae44d1
ssl.rst: explain how to disable VERIFY_X509_STRICT
woodruffwDec 1, 2023
792383a
Apply suggestions from code review
woodruffwDec 6, 2023
f1b59ed
whatsnew/3.13: add note for disabling VERIFY_X509_STRICT
woodruffwDec 6, 2023
c8a7bb5
Merge remote-tracking branch 'upstream/main' into default-ssl-verify-…
woodruffwFeb 1, 2024
f6c3af3
test: add a backstop test for VERIFY_X509_STRICT
woodruffwFeb 2, 2024
ff087fb
test: try a higher base error
woodruffwFeb 2, 2024
e46a672
test: require OpenSSL 3+ for test_verify_strict
woodruffwFeb 16, 2024
fe42d9a
Merge remote-tracking branch 'upstream/main' into default-ssl-verify-…
woodruffwFeb 16, 2024
1a3e037
test: whitespace
woodruffwFeb 16, 2024
cef6950
Merge remote-tracking branch 'upstream/main' into default-ssl-verify-…
woodruffwMar 4, 2024
2c7b14e
Merge remote-tracking branch 'upstream/main' into default-ssl-verify-…
woodruffwMar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
ssl.rst: explain how to disable VERIFY_X509_STRICT
Signed-off-by: William Woodruff <william@yossarian.net>
  • Loading branch information
@woodruffw
woodruffw committedDec 1, 2023
commit4ae44d1e7bad2925dd5b7b60234163364bc901b3
9 changes: 9 additions & 0 deletionsDoc/library/ssl.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -178,6 +178,15 @@ purposes.
ctx = ssl.create_default_context(Purpose.CLIENT_AUTH)
ctx.options &= ~ssl.OP_NO_SSLv3

.. note::
This context enables :data:`VERIFY_X509_STRICT` by default, which
may reject older (pre-:rfc:`5280`) or malformed certificates that the
underlying OpenSSL implementation otherwise would accept. While disabling
this is not recommended, you can do so using::

ctx = ssl.create_default_context()
ctx.verify_flags &= ~ssl.VERIFY_X509_STRICT

.. versionadded:: 3.4

.. versionchanged:: 3.4.4
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp