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!!

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
305 questions
Developer technologies .NET .NET Runtime
Windows for business Windows Server User experience Other
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.