Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Documentation
I was using code as follows:
context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)context.check_hostname = Falsecontext.verify_mode = ssl.CERT_NONEconn = 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.