Hello,
I try to connect an API from an post update plugin.
But I get this error.
The request was aborted: Could not create SSL/TLS secure channel.
I can connect to the API with Postman but I cannot connect it from the plugin.
I tried all methods (HttpWebRequest / Web Client / HttpClientHandler) but it didn't work.
I also tried TLS settings (ssl3, tls, tls11, tls2). in code like this.
ServicePointManager.ServerCertificateValidationCallback = delegate (object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
I tried the all solutions on the internet.
But It still not working.
Anyone have another idea?
Thanks.