-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 SSL support #446
add SSL support #446
Conversation
E127 continuation line over-indented for visual indent
It would be great if this pull request would get merged soon, as it will make it possible for all RedisLabs users to add SSL support to their connections: http://redislabs.com/blog/secure-redis-ssl-added-to-redsmin-and-clients |
I've merged this with a few caveats:
Part of the reason this took so long and part of the reason I removed some of the proposed functionality is that I don't have a setup to test any of this against. It'd be great to figure something out to fix that. |
Hi, I want to argue, that i think you should reinstate the simpler API that allow using the client class directly. I think users should be able to change their simple code into using SSL by adding just one boolean parameter (use_ssl=true). There are some servers or users that will need / want to pass the other optional parameters (like special verification demands and specific certificates), but since these are named optional parameters there are no down sides in exposing them from the client class too (i think it will not hurt the user in any way, and the disruption to the library code is not that bad IMO). So, to sum up, please reconsider allowing both the URL scheme and the client class parameters. regarding testing, i'll post a quick step by step instructions (in a separate post) of how to set up stunnel's server side on localhost, maybe it will help you or anyone else to testing it. |
@andymccurdy if you need an SSL testing environment, we'd be happy to provision it to you (for free of course). |
In order to test the SSL capabilities on a localhost redis-server, please try the following setup: sudo apt-get install stunnel
comment out pop3s and other protocols and add:
sudo vi /etc/default/stunnel4
generate a self-signed certificate, see https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html
sudo cp server.crt /etc/stunnel/redis.pem copy server.crt to your source code folder, and test with:
|
I also think that enabling SSL on a connection should be as easy as possible, on order to encourage people to use it. |
Also, you can refer to http://redislabs.com/blog/using-stunnel-to-secure-redis for a slightly longer and more detailed howto stunnel |
Alright, I went ahead and added this stuff back. I prefixed all arguments on the client class with The URL stuff works too, but there's a slight weirdness with passing Thoughts? |
I added the ability to pass strings to the It can be configured from URLs now. |
very nice work on the URL... e.g:
thanks for everything. |
@oranagra agreed, I initially didn't add the prefix because it's already in the Thanks again. |
Great! Any plans regarding the next PyPI release? |
Very soon. I have 2 more issues I want to get resolved before 2.10 gets rolled out. I'm hoping Friday or over the weekend. |
Adding SSL support.
Tested against stunnel on the server side.