title: Does Microsoft.Web.Redis.RedisSessionStateProvider supports tls 1.2 connection with a redis store?
body: <p>I am using the Microsoft.Web.Redis.RedisSessionStateProvider nuget package as the session store. We have an azure redis instance which is running currently in tls 1.0. I have added the below setting in the Application_Start() method to enable tls 1.2.</p>
  
  <pre><code>ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
  </code></pre>
  
  <p>I have bumped the tls version of redis to 1.2. But there is connection error. Is there something else i have to add in the web.config. My current web.config is below.</p>
  
  <pre><code>    &lt;sessionState timeout="20" mode="Custom" customProvider="MySessionStateStore"&gt;
    &lt;providers&gt;
      &lt;!--&lt;add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionTimeoutInMilliseconds="5000" operationTimeoutInMilliseconds="1000" retrytimeoutInMilliseconds="5000" server="127.0.0.1" ssl="false" throwOnError="true" /&gt;--&gt;
      &lt;add name="MySessionStateStore" port="6380" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="" accessKey="" ssl="true" connectionTimeoutInMilliseconds="5000" operationTimeoutInMilliseconds="1000" retrytimeoutInMilliseconds="5000" throwOnError="true" /&gt;
    &lt;/providers&gt;
  &lt;/sessionState&gt;
  </code></pre>