I need to ignore an SSL certificate error to do some UAT testing internally at our company for a Silverlight application. The client calls a resource that’s using a self-signed certificate, and for a bunch of institutional reasons, simply adding that cert to the machines of those wishing to test it isn’t feasible.
In my Windows service, I can simply use:
ServicePointManager.ServerCertificateValidationCallback +=
(sender, cert, chain, sslPolicyErrors) => true;
That does not appear to exist in Silverlight 5. How can I ignore the certificate errors in the Silverlight client?
You can’t. Simple as that. You will need to find another solution. The user acceptance test should include scenarios that are likely to occur in real life, so I don’t see why adding a cert if you need it in the production environment is not possible. Anyway, maybe your service could be reached by non-secured basic http in your inhouse testing scenario?