Error: PHP/Laravel accessing Redis

scon 1 Reputation point

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=*' did not match expected CN='

would you like to provide solutions


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

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,571 Reputation points

    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.