Open
Description
Documentation
I was using code as follows:
context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
conn = context.wrap_socket(sock, server_hostname=host)
conn.connect((host, port))
this was working fine with python 3.11 but with 3.12 I am getting this error: ssl.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)
some default value has been changed? I can't find it in docs.
also same thing happing when i make request.mount() with ssl context without options and send post request.