This app will try to connect to api.nuget.org with HttpClient, expliciting passing each value of the SslProtocols enumeration.
Note that as the docs say, SslProtocol.None
actually means "use the operating system defaults". It does not mean "do not use encryption".
If this app shows that Tls12
has failed, try the recommendations from this blog post: https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/
If this app shows that Tls12
worked, but None
failed, the most common reason is that Windows TLS 1.3 is enabled, however is incompatible with api.nuget.org's CDN provider's implementation. You should disable TLS 1.3 so that Windows no longer attempts to use TLS 1.3 when talking to nuget.org. See dotnet/runtime#40679