• hrishi18pathak's avatar
    In clustering mode currently, ClusterConfiguration for every server endpoint... · 1b01dc86
    hrishi18pathak authored
    In clustering mode currently, ClusterConfiguration for every server endpoint is built using the output of "CLUSTER NODES" command which consists of IP addresses of the nodes inside the cluster (SetClusterConfiguration and UpdateClusterRange methods)
    However, when we try to authenticate the client to the ssl endpoint, inside SocketMode ISocketCallback.Connected, using the ssl.AuthenticateAsClient method it throws an exception
    "The remote certificate is invalid according to the validation procedure” since we are trying to authenticate using the IP address as opposed to the Dns Host name.
    An existing workaround this problem is to configure "SslHost" explictly inside the connection string or specify it inside ConfigurationOptions.
    However if the users of the client do not configure this explicitly, it is a reasonable fallback behavior to infer this information from the specified server endpoints. The fallback behavior will be as follows:
    If all the endpoints inside the configuration are dns endpoints and have identical hostnames, the SslHost is the dns host name for one for one of these endpoints.
    1b01dc86
Name
Last commit
Last update
.nuget Loading commit data...
BasicTest Loading commit data...
ConnectionWatcher Loading commit data...
Docs Loading commit data...
MigratedBookSleeveTestSuite Loading commit data...
Redis Configs Loading commit data...
StackExchange.Redis Loading commit data...
StackExchange.Redis.Tests Loading commit data...
StackExchange.Redis_Net40 Loading commit data...
packages Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
StackExchange.Redis.StrongName.nuspec Loading commit data...
StackExchange.Redis.md.sln Loading commit data...
StackExchange.Redis.nuspec Loading commit data...
StackExchange.Redis.sln Loading commit data...
StackExchange.Redis.snk Loading commit data...
StrongName.ps1 Loading commit data...
build.msbuild Loading commit data...
monobuild.bash Loading commit data...
monobuild.cmd Loading commit data...
netbuild.cmd Loading commit data...