From 10d21180a5bc00e77d479b1dc89781ba6e7a5e33 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Sat, 13 Jul 2019 22:33:04 -0400 Subject: [PATCH] Use TLS1.1 or TLS1.2 --- MyQClient.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MyQClient.cs b/MyQClient.cs index eccf85d..3258936 100644 --- a/MyQClient.cs +++ b/MyQClient.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; @@ -65,6 +66,8 @@ public MyQClient(MyQMake make = MyQMake.LiftMaster) { httpClient.DefaultRequestHeaders.Add("MyQApplicationId", APP_ID_CRAFTSMAN); } + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; + jsonSerializer = new JavaScriptSerializer(); ClientStatus = STATUS_OK;