If you just want to accept all certificates, you need to install a certificate check before making your request:
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
This will accept all certificates.
Although - if you really need to verify the certificate, do something like:
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { //to check certificate };
source share