summaryrefslogtreecommitdiff
path: root/redis/connection.py
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/connection.py
parent413e802f8fe390738bc1e89716083586e0269fd0 (diff)
downloadredis-py-aed8aa81d6b63a9f85fcdc7f563d9a213f989a0c.tar.gz
Enforce ssl_cert_reqs='required' by default
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-xredis/connection.py4
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")