ASP.NET MVC https全局配置

          //https全局配置
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            ServicePointManager.ServerCertificateValidationCallback =
                (sender, certificate, chain, errors) => true;
原文地址:https://www.cnblogs.com/gaobing/p/12061471.html