title: C# SDK - ASP.NET Core 2.1 - The SSL connection could not be established
body: <p>C# SDK - ASP.NET Core 2.1 - The SSL connection could not be established</p>
  
  <p>I tried </p>
  
  <pre><code>ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
  </code></pre>
  
  <p>It is running in .NET Framework but not in ASP.NET Core.</p>
  
  <p>I also tried </p>
  
  <pre><code>ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
  </code></pre>
  
  <p>But I didn't get success in ASP.NET Core</p>
  
  <p>I want to generate self SSL in asp.net core</p>