Skip to content

Commit 6ff7c54

Browse files
Added sample setting for self-signed certificate TLS connection (#559/#560)
Co-authored-by: Timothy Makobu <[email protected]>
1 parent 21772c7 commit 6ff7c54

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,27 @@ Setting True as a value will instruct the django-redis to close all the connecti
885885
}
886886
}
887887
888+
SSL/TLS and Self-Signed certificates
889+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
890+
891+
In case you encounter a Redis server offering a TLS connection using a
892+
self-signed certificate you may disable certification verification with the
893+
following:
894+
895+
.. code-block:: python
896+
897+
CACHES = {
898+
"default": {
899+
"BACKEND": "django_redis.cache.RedisCache",
900+
"LOCATION": "rediss://127.0.0.1:6379/1",
901+
"OPTIONS": {
902+
"CLIENT_CLASS": "django_redis.client.DefaultClient",
903+
"CONNECTION_POOL_KWARGS": {"ssl_cert_reqs": None}
904+
}
905+
}
906+
}
907+
908+
888909
License
889910
-------
890911

changelog.d/559.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add documentation on configuring self signed SSL certificates.

0 commit comments

Comments
 (0)