Windows Service SSL/TSL error on shutdown event

Maddy 1 Reputation point
2020-09-16T14:08:23.013+00:00

Hi,

I am writing a windows service where i need to notify an API that windows is shutting down. For that i have used windows service onShutdown event. On this event i am sending information to API. My API is running on the https(using self singed certificate).

Now when I am calling the API in windows service then it called successfully and getting the proper response.
But when I am calling the API in onShutdown event, it gives me an error "could not create SSL/TLS secure channel"

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,770 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more