Avatar ·

Error "The request was aborted: Could not create SSL/TLS secure channel" during HTTPS request

Hello, colleagues! I'm writing a simple console application in C# that should send a GET request to an external API over HTTPS. I'm using the good old HttpWebRequest. But when executing the request, it constantly throws an exception: "The request was aborted: Could not create SSL/TLS secure channel". Here's my code: ```csharp using System; using System.Net; using System.IO; class Program { static void Main() { string url = "https://some-secure-api.com/data"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; try { HttpWebResponse response = (HttpWebResponse)request.GetResponse(); using (StreamReader reader = new StreamReader(response.GetResponseStream())) {