I want to use TLS with Redis on Mac (macOS 10.15.4, kernel: Darwin 19.4.0). This is what I tried according to Documentation:
export BUILD_TLS=yes
mkdir redis && cd redis
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make BUILD_TLS=yes
make test
sudo make install
All tests passed but when I run:
% redis-server --tls-cluster yes
I get error:
*** FATAL CONFIG FILE ERROR (Redis 6.0.4) *** Reading the configuration file, at line 2
>>> 'tls-cluster "yes"'
Bad directive or wrong number of arguments
2
Answers
You did not specify the value for the
tls-cluster
configuration option. This works (on my MacBook Catelina 10.15.5):Give a try to
brew install redis
(currently in version6.0.5
) it includes already support for TLS, in any case, if you would like to compile it from the source you could check the brew formula: https://github.com/Homebrew/homebrew-core/blob/master/Formula/redis.rb#L18