I’m trying to start a redis server with the support for tls. Based on the documentation (https://redis.io/topics/rediscli) I execute this command:
redis-cli -a xxxxxxxxx --tls --cacert ../config/certs/test-ca.crt
But it return this error:
Unrecognized option or bad number of args for: ‘–tls’
My redis-cli version is 6.0.9
I can’t figure out what am I missing. How can I fix this?
2
Answers
When you performed make of the redis, you should run as:
make BUILD_TLS=yes
Install dependencies
update package information from repo
install build dependencies
download the package
extract the package
go inside the extracted directory
Build with tls enabled
remove previously generated build files
build with tls option
validate the redis-cli
localhost:6379> INFO SSL
SSL