"Could not create SSL/TLS secure channel" error

This error can happen if you use a webClient to access an SSL/TLS secured endpoint.

Simply add this code to your method to remove the issue :

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

Last updated