Testing Redis Password and TLS Protection
search cancel

Testing Redis Password and TLS Protection

book

Article ID: 399915

calendar_today

Updated On:

Products

Carbon Black EDR

Issue/Introduction

How to test the Redis password and SSL protection

Environment

  • Carbon Black EDR: 7.5.1 and higher

Resolution

  1. Testing the protections. 
    1. redis-cli will appear "connected", if TLS is enabled correctly this will respond with "Error: Connection reset by peer" 
      # redis-cli -p 6379
      
      127.0.0.1:6379> PING
      Error: Connection reset by peer
      not connected>
    2. redis-cli with the certificates and tls flag will connect, however if RedisUsePassword is True, you will receive a "NOAUTH Authentication Required"
      # redis-cli -p 6379 --tls --cert /etc/cb/certs/cb-redis.crt --key /etc/cb/certs/cb-redis.key --cacert /etc/cb/certs/cb-redis-ca.crt
      
      ##.###.##.##:6379> PING
      (error) NOAUTH Authentication required.
  2. Testing access with both TLS and Password protection access. 
    1. Running PING within the redis-cli should return PONG if successfully set. 
      # redis-cli --askpass --tls --cert /etc/cb/certs/cb-redis.crt --key /etc/cb/certs/cb-redis.key --cacert /etc/cb/certs/cb-redis-ca.crt
      
      localhost:6379[1]> PING
      PONG

Additional Information