Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Use TLS1.1 or TLS1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Jul 14, 2019
1 parent 9ee6a1b commit 10d2118
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MyQClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 10d2118

Please sign in to comment.