I am planning to update my minimum TLS version to 1.2 in the Azure portal.
So, I have updated StackExchange.Redis to 2.0 and added sslprotocols=tls12 in the Redis connection string.
But all I am getting is an error Keyword 'sslprotocols' is not supported.
I have tried many things but nothing helped me
I know the answer is kind of discernable from the comments, but this is such an important question I thought I'd make sure the answer is clear for everyone:
Install StackExchange.Redis.StrongName 1.2.6 to your project even though it's deprecated and even though it's already a dependency of Microsoft.AspNet.SignalR.Redis
You will need a web.config mapping like such:
<dependentAssembly>
<assemblyIdentity name="StackExchange.Redis.StrongName" publicKeyToken="c219ff1ca8c2ce46" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.2.6.0" newVersion="1.2.6.0"/>
</dependentAssembly>
Setup the backplane like this:
var connectionString = $"{server}:{port},password={password},ssl=True,sslprotocols=tls12,abortConnect=False";
GlobalHost.DependencyResolver.UseRedis(new RedisScaleoutConfiguration(connectionString, "hubName"));`
You will now be able to set the Minimum TLS Version of your Redis Cache in Azure to 1.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With