-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
[2.7] bpo-28043: improved default settings for SSLContext #10608
Conversation
All tests pass when utilizing multissltests.py |
Please mention commit 358cfd4 in the commit message of the 2nd commit of this PR. |
test_ssl fails on my Fedora 29:
|
This one is an obvious bug in your backport, following change fix it:
Next:
This test requires OP_ENABLE_MIDDLEBOX_COMPAT which has been added by commit 05d9fe3. Minimum patch fixing the test:
And the last one:
this test has been fixed in master by:
This change is extract from commit cb5b68a. |
Doc/library/ssl.rst
Outdated
@@ -1058,6 +1058,17 @@ to speed up repeated connections from the same clients. | |||
:func:`create_default_context` lets the :mod:`ssl` module choose | |||
security settings for a given purpose. | |||
|
|||
.. versionchanged:: 2.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version should be 2.7.16.
The options OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 (except for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3) are set by default. The initial cipher suite list contains only HIGH ciphers, no NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2). (cherry picked from commit 358cfd4)
5224adf
to
2050471
Compare
|
|
|
You can ignore buildbots failures at this point. I'm working right now with @stratakis to push more fixes for OpenSSL 1.1.1. |
ERROR: test_data_header (test.test_urllibnet.urlretrieveNetworkTests) I checked all these tests: they all connect to http://www.example.com : it's clear-text HTTP, it doesn't use SSL. I also checked manually that the website doesn't redirect to HTTPS. So these failures are just random network errors.
These buildbot workers are also s390x workers owned by David Edelsohn, so likely running in the same network and had the same network issues. -- I tested manually test_urllib2net: it pass as expected. |
This is a backport of that change for the 2.7 branch.
It is made on top of #10607
https://bugs.python.org/issue28043