Intermittent SSL/TLS Failure in .NET 6: "Could Not Create Secure Channel"

Jamesh 0 Reputation points
2025-03-17T13:54:14.6033333+00:00

I am developing a .NET application and facing an issue where my API calls intermittently fail with a HttpRequestException. The error message states, "The request was aborted: Could not create SSL/TLS secure channel." This happens randomly, even though my SSL certificate is valid. I am using HttpClient in a .NET 6 application. How can I resolve this issue?

Developer technologies | .NET | .NET Internet of things
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.