Maddy-5580 avatar image
0 Votes"
Maddy-5580 asked Maddy-5580 edited

Windows Service SSL/TSL error on shutdown event


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"

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Maddy-5580, it seems you are developing .NET application (onShutdown). winapi-security tag focuses on Win32 C++ development. For .NET related issue you can ask a question at MSDN forum: Visual C# Language for more professional support. Thanks for your cooperation.

0 Votes 0 ·

0 Answers