I have an application that hosts WebAPI (HttpSelfHostServer) on windows service. Communication over SSL (self-signed certificate for localhost). Now I have two cases:
- Windows7 - when calling API method (from the browser for example) I see that TLS 1.0 is used
- Windows10 - the same call, but here we have TLS1.2
It is the same app in both cases. Moreover, I have set the following property in the entry point of the service
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
When I open any page on IE on Win7 I can see that TLS1.2 is ok. What do I have to do, to force communication over TLS1.2 in my WebAPI on Win7?
Any ideas?