Skip to content

How to make ssl_check_hostname False for RedisCluster connection #3635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AGOPIREDDY12 opened this issue May 6, 2025 · 1 comment
Open
Labels
bug Bug

Comments

@AGOPIREDDY12
Copy link

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
)
@omerfeyzioglu
Copy link

#3637
i hope that will be helpful for you

@petyaslavova petyaslavova added the bug Bug label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

3 participants