Redis Session State in .Net Framework 4.7.1 with SSL issue

Manish Yadav 26 Reputation points
2022-07-29T14:06:10.983+00:00

Hello,

I am trying to use Redis Session State Providers for my web app which is using framework 4.7.1.
We are able to connect to redis with hist and password when the TLS mode in Redis is set to None.
But when we enable TLS mode in redis to "Require all communication to be encrypted" the socket was closed error is seen.

Basically we want to set up ssl when connecting to redis enterprise from. Net using password authenrication. In the web config under session state we have put ssl=true

We are using the configuration mentioned in the below Microsoft doc with ssl=true.

https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-aspnet-session-state-provider

Our belief was that iis would verify the redis cert and the transport layer would be ssl encrypted but it's not working.

Any guidance would be much appreciated.

Thank you!!

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,435 questions
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
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,141 questions
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,017 Reputation points Microsoft Employee
    2022-07-29T18:31:47.507+00:00

    @Manish Yadav Thanks for providing more information, If you are running Redis on-prem, there’s probably not much we can do to help here – you will need to continue working with Redis Inc. Our team only supports the Redis service running in Azure.

    Please let me know if you need any additional information

    Regards
    Geetha


0 additional answers

Sort by: Most helpful