title: How to handle HttpWebRequest C# with Tls 1.3
body: <p>I am unable to connect to an HTTPS server (TLS 1.3) using WebRequest because of this error message:</p>
  
  <p><strong>The request was aborted: Could not create SSL/TLS secure channel.</strong></p>
  
  <p>The previous TLS version was 1.2 and with below code I could GET the page properly but as the page ssl upgraded to TLS 1.3 I got the error and also I cannot find any solution about it:</p>
  
  <pre><code>ServicePointManager.Expect100Continue = true;
  ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
  </code></pre>
  
  <p>In fact, I think it should be something like below:</p>
  
  <pre><code>ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;
  </code></pre>
  
  <p>but there is not.</p>