summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorJustin Clark <u2mejc@users.noreply.github.com>2018-08-07 19:01:29 +0000
committerJustin Clark <u2mejc@users.noreply.github.com>2018-08-07 14:29:56 -0700
commitaed8aa81d6b63a9f85fcdc7f563d9a213f989a0c (patch)
treea9361cc28c274f5953b2b76f8d892c961117cd69 /redis
parent413e802f8fe390738bc1e89716083586e0269fd0 (diff)
downloadredis-py-aed8aa81d6b63a9f85fcdc7f563d9a213f989a0c.tar.gz
Enforce ssl_cert_reqs='required' by default
Diffstat (limited to 'redis')
-rwxr-xr-xredis/client.py2
-rwxr-xr-xredis/connection.py4
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")