[issue46136] "dh low key " issue when try to connect mysql
Christian Heimes
report at bugs.python.org
Mon Dec 20 07:58:35 EST 2021
Christian Heimes <lists at cheimes.de> added the comment:
DH_KEY_TOO_SMALL means that you are using weak and easy to break keys for your connections. Recent versions of OpenSSL prevent insecure connections. You can lower the security setting for a context with:
>>> import ssl
>>> context = ssl.create_default_context()
>>> context.set_ciphers("DEFAULT at SECLEVEL=1")
You need to figure out yourself how to pass an insecure context to your database connector.
----------
resolution: -> wont fix
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46136>
_______________________________________
More information about the Python-bugs-list
mailing list