ButterCMS / buttercms-csharp

.NET API client for ButterCMS (https://buttercms.com)
MIT License
40 stars 16 forks source link

Fix SSL error on .NET versions prior to 4.6 #4

Closed Past9 closed 7 years ago

Past9 commented 7 years ago

Previously to this change set, when the ButterCMS client was used in a project with a .NET version lower than .NET 4.6, it would try to connect to the ButterCMS servers using SSL 3.0, TLS 1.0, or TLS 1.1. The ButterCMS servers use TLS 1.2, which was incompatible with these other security standards and would cause an exception to be thrown at runtime.

This change forces .NET to always choose TLS 1.2, which fixes the error.