Please re-read. It's spiped. Fixed 1k blocks, but otherwise reasonable.
But #4855 is going to be merged, and my tests show that #4855 is actually faster than my changes, so ... :)
I like not having to be responsible for writing SSL/TLS code, even if I just spent 9 weeks doing it. :P
It's probably more complicated than that given that the Redis security page begins with:
> Redis is designed to be accessed by trusted clients inside trusted environments.
https://redis.io/topics/security
I think the current recommended approach for this use case is to wrap it with stunnel.