From 1f6df75a3775f7ac68fcdbbb87e97512f27e7c17 Mon Sep 17 00:00:00 2001 From: "zhouwei@1" Date: Sun, 26 Dec 2021 20:38:22 +0800 Subject: [PATCH] =?UTF-8?q?ssl=20=E8=AF=81=E4=B9=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/EwsHttpWebRequest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/EwsHttpWebRequest.cs b/Core/EwsHttpWebRequest.cs index 81bb560a..9fe8db2a 100644 --- a/Core/EwsHttpWebRequest.cs +++ b/Core/EwsHttpWebRequest.cs @@ -56,7 +56,7 @@ internal EwsHttpWebRequest(Uri uri) Method = "GET"; RequestUri = uri; _httpClientHandler = new HttpClientHandler() - { + { ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true, AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip }; _httpClient = new HttpClient(_httpClientHandler); @@ -289,4 +289,4 @@ public string ConnectionGroupName #endregion } -} \ No newline at end of file +}