I get the error[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled when I tried to get requests from the url.
I found same solution on stackoverflow. I tried and couldn’t solve this situation.
But it had 1 solution to edit openssl.cnf
I already create an openssl.cnf and put the path into the env (of windows)
openssl_conf = openssl_init
[openssl_init]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
Options = UnsafeLegacyRenegotiation
How can I run this conf in python ?
I have the
project
- app – main.py
- router/request.py (where I requests.url)
5