Accepting Web Service Cerificates
12 February 2010
In the past, I have frequently tested in environments with self-generated SSL certificates, and then use "real" certificates in production environments. This usually is not much of a problem unless the application makes calls to web services that are also encrypted using a self-generated certificates. This scenario is increasingly the norm in the current world of SOA and RIA. For this scenario to work, you have to implement your own certificate validation code as follows:
This delegate only has to be set once. Therefore, a good place to do this is at application start up. For an ASP.NET application, alter the Application_Start method of the Global.asax. For Sliverlight, see Application Startup.
is licensed under a Creative Commons Attribution 4.0 International License