-
Couldn't load subscription status.
- Fork 330
update defualt ssl_version #127
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
Conversation
|
So this is basically to make more future-friendly as we update OpenSSL implementations? If that's accurate, then LGTM in theory. 😁 BackgroundFrom https://wiki.openssl.org/index.php/SSL_and_TLS_Protocols#Security :
But see https://www.howsmyssl.com/s/about.html#version :
|
dropbox/session.py
Outdated
| cert_reqs=ssl.CERT_REQUIRED, | ||
| ca_certs=_TRUSTED_CERT_FILE, | ||
| ssl_version=ssl.PROTOCOL_TLSv1, | ||
| ssl_version=(ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3), |
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.
I haven't seen this approach before. Can these be used alone (i.e., without any base PROTOCOL_ constant)? Is there an example of this usage? It's not clear in the docs (see ssl.OP_ALL for py2 et seq. and ssl.OP_ALL for py3 et seq.)
| block=block, | ||
| cert_reqs=ssl.CERT_REQUIRED, | ||
| ca_certs=_TRUSTED_CERT_FILE, | ||
| ssl_version=ssl.PROTOCOL_TLSv1, |
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.
Are you sure this is what you want? From https://docs.python.org/2/library/ssl.html#ssl.wrap_socket:
The parameter
ssl_versionspecifies which version of the SSL protocol to use. … If not specified, the default isPROTOCOL_SSLv23; it provides the most compatibility with other versions.
|
As was pointed out to me
|
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.
Oh, nice. OpenSSL stuff is often…counterintuitive. 😒 Thanks for the education! 😁
LGTM. 👍 Squash commits before rebase-and-merge?
…stead use defaults from urllib3
to no longer use specifically TLSv1 but instead use the defualt TLS and require no sslV2 and V3.