I have an .NET application that interacts with a SOAP web service in our test and production environment.The test environment requires TLS 1.1 or above whereas production still supports TLS 1.0.
I have added this following code:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 |
SecurityProtocolType.Tls11 |
SecurityProtocolType.Tls;
Does anyone know if the above piece of code will work in both test and production environments by using the supported encryption protocol? Thanks