Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Allow clients to choose TLS versions > 1.0 #18

Merged
merged 2 commits into from
Jun 15, 2018
Merged

Allow clients to choose TLS versions > 1.0 #18

merged 2 commits into from
Jun 15, 2018

Conversation

wiegandm
Copy link
Member

This commit allows OSP clients to negotiate a TLS version higher than
TLSv1.0 instead of forcing them to use this specific protocol version
which may be subject to protocol-specific weaknesses depending on the
environment.

As the comment explains, the constant ssl.PROTOCOL_SSLv23 does indeed
select the highest protocol version that both the client and server
support for current Python versions (>= 3.4), despite its name.

If compatibility with Python 3.4 is no longer desired, the slightly more
fitting constant ssl.PROTOCOL_TLS should be used.

This commit allows OSP clients to negotiate a TLS version higher than
TLSv1.0 instead of forcing them to use this specific protocol version
which may be subject to protocol-specific weaknesses depending on the
environment.

As the comment explains, the constant `ssl.PROTOCOL_SSLv23` does indeed
select the highest protocol version that both the client and server
support for current Python versions (>= 3.4), despite its name.

If compatibility with Python 3.4 is no longer desired, the slightly more
fitting constant `ssl.PROTOCOL_TLS` should be used.
@wiegandm wiegandm requested review from jjnicola, janowagner and a team June 14, 2018 12:06
@janowagner janowagner merged commit ea6093c into greenbone:master Jun 15, 2018
@wiegandm wiegandm deleted the allow_tls_gt_10 branch June 18, 2018 05:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants