Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redis Essentials

You're reading from   Redis Essentials Harness the power of Redis to integrate and manage your projects efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781784392451
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Encrypting client-to-server communication


By default, Redis does not support any encryption. Assuming that encryption is desired in the client-server connection, extra tools are necessary. Encrypting the Redis communication using SSL can prevent malicious attackers from eavesdropping on the network, and ensure that only trusted clients that have the SSL key can connect to Redis.

The tool we will use to encrypt Redis communication is called stunnel. It is an SSL encryption wrapper between a local client and a local or remote server. Many services that do not implement SSL encryption can take advantage of stunnel.

Redis can be combined with stunnel to encrypt all client-server communication.

The basic idea is that a connection will exist between a stunnel server and a client, and that connection will be SSL-encrypted through a private SSL key.

There are two options for running Redis with stunnel:

  • Run stunnel on both the server and client machines, using the same private key:

    • The stunnel in the server...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image