- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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 | adrianv |
|---|---|
| Recipients | adrianv, christian.heimes |
| Date | 2017-09-13.15:48:24 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1505317705.14.0.640405907228.issue31453@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
According to the documentation (https://docs.python.org/2/library/ssl.html#ssl.PROTOCOL_TLS), using ssl_version = ssl.PROTOCOL_TLS in a server socket should offer all TLS/SSL versions. However, it only offers TLSv1_2. I attached a proof of concept. $ python3 poc.py 3.5.4 (default, Aug 12 2017, 14:08:14) [GCC 7.1.0] OpenSSL 1.1.0f 25 May 2017 [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:719) [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:719) b'test\n' $ python2 poc.py 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] OpenSSL 1.1.0f 25 May 2017 [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:661) [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:661) test To connect with s_client: $ for i in {tls1,tls1_1,tls1_2} ; do echo test | openssl s_client -connect localhost:3333 -CAfile server.pem -quiet -$i ; done 140164347663616:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../ssl/record/rec_layer_s3.c:1399:SSL alert number 70 139926441944320:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../ssl/record/rec_layer_s3.c:1399:SSL alert number 70 depth=0 C = AU, ST = Some-State, O = Internet Widgits Pty Ltd verify return:1 read:errno=0 |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-09-13 15:48:25 | adrianv | set | recipients: + adrianv, christian.heimes |
| 2017-09-13 15:48:25 | adrianv | set | messageid: <1505317705.14.0.640405907228.issue31453@psf.upfronthosting.co.za> |
| 2017-09-13 15:48:25 | adrianv | link | issue31453 messages |
| 2017-09-13 15:48:24 | adrianv | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
