ssl - Can I use TLS version 1.1 or 1.2 in python 2? -


i read document says python 2 has ssl.protocol_tlsv1 constant, , ssl.protocol_tlsv1_1 , ssl.protocol_tlsv1_2 added in python 3.4. how can use tls 1.1 , 1.2 in python 2?

ps. don't want use tls 1.0 because has security flaws. tls 1.2 newest version now, want make program use tls 1.2 only; if server doesn't support tls 1.2 make connection failed.

with apologies resurrecting old question, appears support tls1.1 , tls1.2 brought in python 2.7.9, scheduled release around december 2014.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -