Skip to content

Commit

Permalink
Feature: Adding support for TLSV1.2 (#29)
Browse files Browse the repository at this point in the history
Why is this change neccesary?

How does it address the issue?

What side effects does this change have?
  • Loading branch information
Eduardo Enriquez authored and Fernando Ruiz committed Apr 26, 2018
1 parent 01bed94 commit ded73e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/conekta/conekta/Base/Requestor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public String request (String method, String resource_uri, String data = "{}")
}

try {
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var uname = Environment.OSVersion;
HttpWebRequest http = (HttpWebRequest)WebRequest.Create(conekta.Api.baseUri + resource_uri);
http.Accept = "application/vnd.conekta-v" + conekta.Api.version + "+json";
Expand Down

0 comments on commit ded73e1

Please sign in to comment.