EasyHttp / EasyHttp

Http Library for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSL issue when running HTTPS request

dominicklee opened this issue · comments

Hi, I am running an issue when try to do a request that uses HTTPS URL. The Visual Studio IDE shows this error when I attempt to make the request:

An unhandled exception of type 'System.Net.WebException' occurred in System.dll
Additional information: The request was aborted: Could not create SSL/TLS secure channel.

From other articles, I have already put the following in my code, but to no avail:

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12

Can someone please tell me what is the problem and what code is missing to fix it? Thanks!

@davidalpert Any ideas on how we can fix this without rebuilding the DLL?