I'm getting the error `The remote certificate is invalid according to the validation procedure when requesting an URL on my local development machine.
I already looked here.
But I can't find the VB.NET code for this C# code:
ServicePointManager.ServerCertificateValidationCallback += (o, c, ch, er) => true; OR
// Put this somewhere that is only once - like an initialization method ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(ValidateCertificate); ... static bool ValidateCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return true; } Can someone help me with the translation of this code? I tried the translators converter.telerik.com and carlosag.net but those fail.