title: WCF secure connection should initiate connection with TLS 1.2 protocol
body: <p>I am trying to achieve to have a server set up which will only provide secure connection with TLS 1.2 protocol.</p>
  
  <p>On the server I disabled the the SSL 2, SSL 3, TLS 1.0. By regedit <a href="https://support.microsoft.com/en-sg/kb/187498#kb-link-6" rel="nofollow noreferrer">using this way</a>.
  I have a simple ASP.NET application and an _AppStart.cshtml file where I am logging what is happening.</p>
  
  <p>This is the code and output I have now (<a href="https://stackoverflow.com/questions/26389899/how-do-i-disable-ssl-fallback-and-use-only-tls-for-outbound-connections-in-net">mostly got it from here</a>):</p>
  
  <pre class="lang-cs prettyprint-override"><code>Log("SecurityProtocol: " +  System.Net.ServicePointManager.SecurityProtocol.ToString());
  System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 
  Log("SecurityProtocol: " +  System.Net.ServicePointManager.SecurityProtocol.ToString());
  </code></pre>
  
  <p>output:</p>
  
  <pre class="lang-cs prettyprint-override"><code>-- Log: SecurityProtocol: Ssl3, Tls
  -- Log: SecurityProtocol: Tls12
  </code></pre>
  
  <p>In the beginning somehow the value is still Ssl3, Tls</p>
  
  <p>Is there any way to set up (maybe in web.config/app.config file) to initially start connection with forcing TLS 1.2? </p>
  
  <p>One step would be achieving this by browsing this web application, another would be to have this working between a web- and application server with WCF.
  Any good pointers and ideas how to do this? I would appreciate any help!</p>