Schannel protocol registry setting override ServicePointManager.SecurityProtocol values?

293 views Asked by At

I am creating a WCF application in which I am setting the ServicePointManager.SecurityProtocol to accept TLS1.2. I will also be creating the SChannel service registry keys as outlined here to disable all client / server protocols other than TLS1.2 (will set Enabled = 0).

I understand that the SChannel setting creates an OS level setting. I was wondering if in my code I explicitly set ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; would it override the OS setting and allow TLS1.1 connections?

I got confused because of the statements here - If you want to configure security with the registry, don't specify a security protocol value in your code; doing so overrides the registry setting.

This update will not change the behavior of applications that are manually setting the secure protocols instead of passing the default flag.

Edit 1: I am using .Net v4.7.

0

There are 0 answers