Jean-Francois Handfield | Ok I figured out my problem.
Here is what you need to insert for everything to work properly:
System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy(); <-- You need to initiliaze this once in your project.
public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy { public TrustAllCertificatePolicy() { }
public bool CheckValidationResult(ServicePoint sp, X509Certificate cert, WebRequest req, int problem) { return true; } }
Cheers |
| Please sign in to flag this as inappropriate. |