Re: TLS 1.3 and SNI; test script included
Patrick <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
On 2019-02-10 16:50, Charles Cazabon wrote: > [email protected] <[email protected]> wrote: >> >> Wodan> ./test-imap.py imap.gmail.com <http://imap.gmail.com/> >> Traceback (most recent call last): >> File "./test-imap.py", line 11, in <module> >> ssl_version=ssl.PROTOCOL_TLS, ca_certs=None, >> AttributeError: 'module' object has no attribute 'PROTOCOL_TLS' > > Indeed, that value isn't present before 2.7.13. If you care to try, > here's an > updated version that may fail for different reasons ;) I'll be happy to help, but this script fails for the same reason :-) Yesterday evening I downloaded Python 3.7.2 on my Mac and tried it, but the ssl.HAS_TSLv1_3 returns False. This morning I downloaded it on my Windows work computer, but got the same result. ssl.OPENSSL_VERSION returns 'OpenSSL 1.1.0j 20 Nov 2018' Now I'm wondering how the other guys here tested this... does Linux simply come with a Python version that has the latest and greatest OpenSSL (v1.1.1)? Or do I need to do something special? If it's too much trouble, just ignore all this. Kind regards, Patrick