According to article https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls
WCF Supports TLS1.0, 1.1 and 1.2 as the default in .NET Framework 4.7. Starting with .NET Framework 4.7.1, WCF defaults to the operating system configured version,
If you are targeting your application to 4.7.1, WCF is configured to allow the OS to choose the best security protocol by default unless explicitly configured. To Target 4.7.1, we need to set < httpRuntime targetFramework="4.7.1" /> in web.config. If not, it will fall back to 4.5 default behavior, it means to select SSL3.0 and TLS1.0 as default protocols.
< httpRuntime targetFramework="4.7.1" />
This suggests our WCF application would choose TLS1.2 if OS is configured properly.
In console app scenario, the same is achieved by setting <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/> in your application configuration file.
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.