Hi

I am working with Redis HA.

Redis version: 6.2.3 In my Redis instance, SSL is implemented. When I am starting Sentinel service without tls configuration in sentinel.conf, service gets started but on master and slave nodes, redis logs are giving error like "Error accepting a client connection: error:1408F10B:SSL routines:ssl3_get_record:wrong version number (conn: fd=11)"

I've tried adding below configuration in sentinel.conf to resolve issue port 0 tls-port 26379 tls-cert-file "/data/redis/cert/server.crt" tls-key-file "/data/redis/cert/server.key" tls-ca-cert-file "/data/redis/cert/server_ca.crt" tls-auth-clients yes tls-replication yes tls-protocols "TLSv1.2" tls-ciphers "DEFAULT:!MEDIUM"

after the above setting sentinel service is not starting and giving below error.

*** FATAL CONFIG FILE ERROR (Redis 6.2.3) *** Reading the configuration file, at line 22

'tls-port 26379' Bad directive or wrong number of arguments

Can somebody please guide me for proper tls configuration for Redis Sentinel.

Thanks for help in advance!!!

Comment From: HolpStart

sorry, i can,t help you

Comment From: moticless

Hi @krushnakantb, here is rather minimal configuration files and docker-compose to test it. Please lmk if you need further assistant. Thanks.

Comment From: krushnakantb

Thanks for reply @moticless let me check and will update.

Comment From: krushnakantb

Hi @moticless

I found that my build package is having issue and due to that I am facing error while compiling sentinel service with SSL

Below is the solution for that is run below command from Redis installation directory

make BUILD_TLS=yes make test make install BUILD_TLS=yes ./runtest --tls

If no error came then configure sentinel service with SSL and it will work fine,