From 6d2d0b66b195fc4e10b035913ee1e15835286269 Mon Sep 17 00:00:00 2001 From: vslee Date: Thu, 26 Sep 2019 09:35:47 -0700 Subject: [PATCH] Eliminate SSL3 - SSL3 is now deprecated - https://medium.com/@kyle.gagnet/your-net-code-could-stop-working-in-june-afb35fbf29ca - https://tools.ietf.org/html/rfc7568 - https://docs.microsoft.com/en-us/security-updates/securityadvisories/2015/3009008 - plus, it was giving me the exception `System.NotSupportedException: 'The requested security protocol is not supported.'` --- ExchangeSharp/API/Common/BaseAPI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExchangeSharp/API/Common/BaseAPI.cs b/ExchangeSharp/API/Common/BaseAPI.cs index e47cc2f0..c183b6ab 100644 --- a/ExchangeSharp/API/Common/BaseAPI.cs +++ b/ExchangeSharp/API/Common/BaseAPI.cs @@ -264,11 +264,11 @@ static BaseAPI() #if HAS_WINDOWS_FORMS // NET47 - ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; + ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; #else - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; #endif