Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
This commit is contained in:
18
Hcs.Client/ClientApi/RemoteCaller/HcsServicePointConfig.cs
Normal file
18
Hcs.Client/ClientApi/RemoteCaller/HcsServicePointConfig.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Hcs.ClientApi.RemoteCaller
|
||||
{
|
||||
/// <summary>
|
||||
/// Конфигурация ServicePointManager для работы с TLS. Скорее всего класс не нужен.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user