'TLS 1.2 - unable to run .NET 5 WebApi clean template (Windows 7 + VS 2019)

I've been struggling with it the second day. I created a .NET 5.0 WebApi template in Visual Studio 2019 (simplest WhetherForecast). When I run the solution, the browser opens and I get the message (Firefox browser):

SecureConnectionFailed

The machine I tried to run it on has Windows 7 (SP1) installed, and based on what I read, it should still support .NET 5. However I think the problem is with some internet configuration itself, because when I go to about:config in Firefox, and change the setting security.tls.version.min from 3 (TLS 1.2) to 1 (TLS 1.0) then it opens fine. I already tried:

but without any luck.

I could of course switch to TLS 1.0, and Win7 setup is just temporary, but I'm curious what's the cause of this error. Any ideas?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source