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 | |
parent | 413e802f8fe390738bc1e89716083586e0269fd0 (diff) | |
download | redis-py-aed8aa81d6b63a9f85fcdc7f563d9a213f989a0c.tar.gz |
Enforce ssl_cert_reqs='required' by default
Diffstat (limited to 'redis')
-rwxr-xr-x | redis/client.py | 2 | ||||
-rwxr-xr-x | redis/connection.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py index 79e94d0..7bd7da1 100755 --- a/redis/client.py +++ b/redis/client.py @@ -496,7 +496,7 @@ class StrictRedis(object): charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, - ssl_cert_reqs=None, ssl_ca_certs=None, + ssl_cert_reqs='required', ssl_ca_certs=None, max_connections=None): if not connection_pool: if charset is not None: 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") |