Over the past month or so, I've been working on our first real service using WCF at Logos. You could say that the research work was really done a couple weeks ago. Most of the pain and anguish I've felt during development has been with setting up SSL certficates for use with the service. I'm happy to say that they are no longer an issue! (can I get my WCF achievement badge now?)
To make a long story short, if you're trying to connect to a service using self-signed SSL certificates, you have one of two options:
- Add a method to ServicePointManager.ServerCertificateValidationCallback to accept all certificates (just return true; this one's a bit of a hack :P)
- Add the issuer certificate to the client's "Trusted Root Certification Authorities" list.
I probably would have found this sooner if I had done more reading and less banging my head against the code, but we all have to learn somehow, right?