Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS support #188

Open
avrahamkam opened this issue Mar 31, 2020 · 5 comments
Open

TLS support #188

avrahamkam opened this issue Mar 31, 2020 · 5 comments

Comments

@avrahamkam
Copy link

Is TLS supported? I don't see any documentation for how to configure it.

If I understand correctly, redis-py supports TLS (redis/redis-py#446).

@philgyford
Copy link

I was just coming to ask this. Heroku is changing its Redis add-on and now recommends using their TLS connection. They also specifically point Django users to use django-redis-cache so I was assuming it does work... but I get ConnectionErrors about CERTIFICATE_VERIFY_FAILED when I try and use a setting like:

CACHES = {
    "default": {
        "BACKEND": "redis_cache.RedisCache",
        "LOCATION": os.environ.get("REDIS_TLS_URL"),
        "OPTIONS": {"CONNECTION_POOL_KWARGS": {"ssl_cert_reqs": None}},
    }
}

Am I doing something wrong?

@philgyford
Copy link

I'm now wondering if Heroku just got confused between django-redis and django-redis-cache, as the former seems to work OK for me with TLS.

@philgyford
Copy link

After opening a ticket with Heroku and suggesting they might have got confused, they've rewritten that bit of their docs to specify using django-redis instead of django-redis-cache.

Sorry that none of this answers your question @avrahamkam , although I'm guessing this doesn't support TLS.

@abatilo
Copy link

abatilo commented Nov 9, 2021

Bumping. Does this library support TLS connections?

@atten
Copy link

atten commented Feb 10, 2022

I managed to enable SSL with 'LOCATION': 'rediss://<hostname>:6379'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants