title: WCF Client in .NET 4.5.1: How to enable TLS 1.2 when WebRequest is used?
body: <p>Our .net WCF Client, the WebRequest call, compiled to a windows EXE, running on Win2012-R2, refuses to connect to a web server that surfaces ONLY TLS 1.2</p>
  
  <p>We know that Win2012 and .NET 4.5x support TLS 1.2</p>
  
  <p>We have no problems when the server surfaces TLS 1.0 and up. The problem is only seen when the server we connect to has DISABLED TLS 1.0, 1.1 and SSL2 and SSL3. The Server ONLY surfaces TLS 1.2. Chrome and firefox (on Win 7 and higher) connect fine to the server (no warnings or SSL issues of any kind).</p>
  
  <p>The server certificate is %100 OK.</p>
  
  <p>The problem is that WebRequest fails to connect in this situation.</p>
  
  <p>What do we need to set in code so that our use of WebRequest will connect to systems that may run TLS 1.2, 1.1, 1.0, and/or SSL v3?</p>