add ServerCertificateValidationCallback to skip certification errors.

This commit is contained in:
Bitl 2022-09-05 08:10:27 -07:00
parent 672a4e01b1
commit 5341fb5db5
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ class Downloader
| (SecurityProtocolType)3072
| (SecurityProtocolType)768
| SecurityProtocolType.Ssl3;
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
// Create a request for the specified remote file name
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(remoteFilename);
//changing it to just "roblox" since roblox is breaking everything.