diff --git a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs index 799a400f5fbfa6..7732493fcb7db1 100644 --- a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs +++ b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs @@ -450,7 +450,7 @@ private static bool GetTls10Support() // Windows depend on registry, enabled by default on all supported versions. if (IsWindows) { - return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls, defaultProtocolSupport: true); + return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls, defaultProtocolSupport: true) && !IsWindows10Version20348OrGreater; } return OpenSslGetTlsSupport(SslProtocols.Tls); @@ -467,7 +467,7 @@ private static bool GetTls11Support() } // It is enabled on other versions unless explicitly disabled. - return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls11, defaultProtocolSupport: true); + return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls11, defaultProtocolSupport: true) && !IsWindows10Version20348OrGreater; } // on macOS and Android TLS 1.1 is supported. else if (IsOSXLike || IsAndroid)