namespace Hcs.ClientApi.RemoteCaller { /// /// Конфигурация ServicePointManager для работы с TLS. Скорее всего класс не нужен. /// public static class HcsServicePointConfig { public static void InitConfig() { // TODO: Проверить комментарий // Отключено 15.12.2023, работает и так //ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; //ServicePointManager.CheckCertificateRevocationList = false; //ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true); //ServicePointManager.Expect100Continue = false; } } }