I am currently integrating with a system created by a 3rd party. This system requires me to send a request using XML/HTTPS. The 3rd party send me the certificate and I insta
The shortest notation of the code to allow all certificates is actually:
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
And works well for this error. Needless to say that you should provide an implementation which actually checks the certificate and decides based on the certificate information if the communication is safe. For test purposes, use the above line of code.