Skip to content

Commit 850f447

Browse files
vsleejjxtra
authored andcommitted
Eliminate SSL3 (#451)
- 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.'`
1 parent 2eb8650 commit 850f447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExchangeSharp/API/Common/BaseAPI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ static BaseAPI()
264264

265265
#if HAS_WINDOWS_FORMS // NET47
266266

267-
ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
267+
ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
268268

269269
#else
270270

271-
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
271+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
272272

273273
#endif
274274

0 commit comments

Comments
 (0)