You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that Python 3.10 changed the default list of SSL ciphers, it is a
good idea in general to allow customization of the list of cyphers when
using Redis with TLS.
It seems that this works only with TLS 1.2, and with TLS 1.3 it's
intentionally not possible to change the ciphers:
https://docs.python.org/3/library/ssl.html#ssl.SSLContext.set_ciphers
Copy file name to clipboardExpand all lines: redis/connection.py
+5
Original file line number
Diff line number
Diff line change
@@ -685,6 +685,7 @@ def __init__(
685
685
ssl_ocsp_context=None,
686
686
ssl_ocsp_expected_cert=None,
687
687
ssl_min_version=None,
688
+
ssl_ciphers=None,
688
689
**kwargs,
689
690
):
690
691
"""Constructor
@@ -704,6 +705,7 @@ def __init__(
704
705
ssl_ocsp_context: A fully initialized OpenSSL.SSL.Context object to be used in verifying the ssl_ocsp_expected_cert
705
706
ssl_ocsp_expected_cert: A PEM armoured string containing the expected certificate to be returned from the ocsp verification service.
706
707
ssl_min_version: The lowest supported SSL version. It affects the supported SSL versions of the SSLContext. None leaves the default provided by ssl module.
708
+
ssl_ciphers: A string listing the ciphers that are allowed to be used. Defaults to None, which means that the default ciphers are used. See https://docs.python.org/3/library/ssl.html#ssl.SSLContext.set_ciphers for more information.
0 commit comments