TLS connection failure using redis-cli
Last updated 23, Jul 2022
Symptoms
Attempting a TLS connection to Redis Cloud fails with error:
redis-cli -h <HOST> -p <PORT> --tls --cacert redislabs_ca.pem
Unrecognized option or bad number of args for: '--tls
Cause
The reason is that redis-cli
was compiled without TLS support.
Solution
The reason is that redis-cli
was compiled without TLS support. Fix it by compiling it with:
make BUILD_TLS=yes
References
Learn more in the related document.