The following SSL protocols are considered insecure.
PROTCOL_SSLv3
PROTOCOL_SSLv2
PROTOCOL_TLSv1
PROTOCOL_TLSv1_1
- Use
ssl.create_default_context()
instead of trying to do this yourself - Do not use version specifiers, use
PROTOCOL_TLS
with options disallowing the bad protocols