This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Alex Gaynor, adrianv, christian.heimes
Date 2017-09-13.16:16:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505319393.07.0.354116557411.issue31453@psf.upfronthosting.co.za>
In-reply-to
Content
You have to enable the protocols by applying a reverse bitmask to SSLContext.options:

ctx = ssl.SSLContext(ssl.PROTOCOL_TLS)
ctx.load_cert_chain('server.pem')
ctx.options &= ~(ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1)

sslsock = ctx.wrap_socket(s, server_side=True)
History
Date User Action Args
2017-09-13 16:16:33christian.heimessetrecipients: + christian.heimes, Alex Gaynor, adrianv
2017-09-13 16:16:33christian.heimessetmessageid: <1505319393.07.0.354116557411.issue31453@psf.upfronthosting.co.za>
2017-09-13 16:16:33christian.heimeslinkissue31453 messages
2017-09-13 16:16:33christian.heimescreate