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

Add support to use certificates from string instead of file #2047

Closed
zalmane opened this issue Mar 13, 2022 · 0 comments · Fixed by #2048
Closed

Add support to use certificates from string instead of file #2047

zalmane opened this issue Mar 13, 2022 · 0 comments · Fixed by #2048
Assignees

Comments

@zalmane
Copy link

zalmane commented Mar 13, 2022

Currently, redis-py support connecting using SSL certificates stored in files by passing the certificate path to the redis connection. This, in turn, is sent to the python/cython SSL module.
Python 3.4 added support for loading certificates from a string in addition to a file. See https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_verify_locations.
Supporting the parameter cdata in redis-py connection will enable to send certificates from a string instead of a file.

Version: What redis-py and what redis version is the issue happening on?
All

Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
All

Description: Description of your issue, stack traces from errors and code that reproduces the issue

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

Successfully merging a pull request may close this issue.

2 participants