diff options
author | Justin Clark <u2mejc@users.noreply.github.com> | 2018-08-07 19:01:29 +0000 |
---|---|---|
committer | Justin Clark <u2mejc@users.noreply.github.com> | 2018-08-07 14:29:56 -0700 |
commit | aed8aa81d6b63a9f85fcdc7f563d9a213f989a0c (patch) | |
tree | a9361cc28c274f5953b2b76f8d892c961117cd69 /redis/connection.py | |
parent | 413e802f8fe390738bc1e89716083586e0269fd0 (diff) | |
download | redis-py-aed8aa81d6b63a9f85fcdc7f563d9a213f989a0c.tar.gz |
Enforce ssl_cert_reqs='required' by default
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index 6ad467a..9652a23 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -687,8 +687,8 @@ class Connection(object): class SSLConnection(Connection): description_format = "SSLConnection<host=%(host)s,port=%(port)s,db=%(db)s>" - def __init__(self, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, - ssl_ca_certs=None, **kwargs): + def __init__(self, ssl_keyfile=None, ssl_certfile=None, + ssl_cert_reqs='required', ssl_ca_certs=None, **kwargs): if not ssl_available: raise RedisError("Python wasn't built with SSL support") |