Support for Redis native TLS
See original GitHub issueI couldn’t find an existing issue about this so asking here:
Redis 6 (currently in rc phase) supports TLS natively. Details here: https://redis.io/topics/encryption
I built Redis 6 with TLS support and created certs as instructed in Redis TLS.md
file. I then tried to connect to it using ioredis:
{
host: 'localhost',
tls: {
key: fs.readFileSync('/Users/ilkkao/redis-6.0-rc2/tests/tls/redis.crt'),
cert: fs.readFileSync('/Users/ilkkao/redis-6.0-rc2/tests/tls/redis.key'),
ca: [fs.readFileSync('/Users/ilkkao/redis-6.0-rc2/tests/tls/ca.crt')],
checkServerIdentity: () => { return null; },
}
}
Should this work? My redis instance responds
17266:M 12 Mar 2020 15:12:14.455 # Error accepting a client connection: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:16 (6 by maintainers)
Top Results From Across the Web
TLS | Redis
TLS. Redis TLS support. SSL/TLS is supported by Redis starting with version 6 as an optional feature that needs to be enabled at...
Read more >Transport Layer Security (TLS) | Redis Documentation Center
Transport Layer Security (TLS) uses encryption to secure network communications. Redis Cloud Fixed, Flexible, and Annual subscriptions can ...
Read more >Redis TLS — Practical Zero Trust - Smallstep
Native "SSL Support" (TLS) was added to Redis 6.0.0, which was released GA on April 30, 2020. TLS in Redis is an optional...
Read more >How To Connect to a Managed Redis Instance over TLS with ...
redis -cli , the Redis command line interface, doesn't natively support connections over TLS, a cryptographic protocol that allows for secure ...
Read more >Configuring Redis TLS - Atomic Spin
Transport Layer Security (TLS) is a cryptographic protocol that ensures the secure delivery of data between applications and their Redis ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve contacted Redis Cloud support about this as we are seeing the same issue on our servers, will keep you guys updated as well.
I am currently struggling with this. In redis.com it is possible to configure TLS without requiring client keys, just the CA authority .pem file, so this works using the cli for example (using the “redis fixed certificate” that you can download from your account page)
Whereas this does not work
Give the following error:
Interestingly in the official Redis documentation they only refer to an example using client certificates too: https://docs.redis.com/latest/rs/references/client_references/client_ioredis/
Any ideas?