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

后端 未结 3 644
梦如初夏
梦如初夏 2021-01-12 06:08

I read a document that says that Python 2 only has ssl.PROTOCOL_TLSv1 constant, and that ssl.PROTOCOL_TLSv1_1 and ssl.PROTOCOL_TLSv1_2

3条回答
  •  醉话见心
    2021-01-12 06:34

    No there is no support planned for TLS 1.1 or 1.2 in Python 2, see:

    http://bugs.python.org/issue16692

    It states clearly that TLS > 1.0 won't be backported to Python 2.7, and Python maintainers stated several times that Python 2.8 is not going to happen.

    Please note that few servers support TLS 1.2 for now. Hopefully it will change in the future.

提交回复
热议问题