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?

.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
39 questions
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.