Error: PHP/Laravel accessing Redis

scon 1 Reputation point
2022-01-29T14:04:45.76+00:00

This error is reported when multiple shard counts are selected in redis clustering, but normal when one is selected

stream_socket_enable_crypto(): Peer certificate CN=*.redis.cache.windows.net' did not match expected CN=20.205.3.34'

would you like to provide solutions

thanks

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
232 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,591 Reputation points
    2022-01-31T04:57:25.99+00:00

    Hi @scon , welcome to Microsoft Q&A forum.

    Can you please check below GitHub solution that talks about the same issue:

    Redis Cluster + SSL = certificate match error

    It is overriding the host parameter:

    if ($this->defaults) {  
                $parameters += $this->defaults;  
                if (isset($this->defaults['host'])) {  
                    $parameters['host'] = $this->defaults['host'];  
                }  
            }  
    

    Please let us know if this helps or we can discuss further.