Skip to content

How to make ssl_check_hostname False for RedisCluster connection #3635

Closed
@AGOPIREDDY12

Description

@AGOPIREDDY12

I am getting following error while making the connection to redis cluster and need to make ssl_check_hostname False but not bale to do the same.

Fail to establish redis connection: Redis Cluster cannot be connected. Please provide at least one reachable node: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.

Connection code

REDIS_DATABASE_TEST = redis.RedisCluster(
  host=REDIS_HOSTNAME,
  port=PORT,
  password=REDIS_PASSWORD,
  ssl=True,
  decode_responses=True,
  socket_timeout=5,
  ssl_cert_reqs=u'none',
  ssl_check_hostname=False, # Not working
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions