Posted by: Matt Rudder @ 3:35 AM on Saturday, June 02, 2007
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?
Comments
Related posts
"Scrap!" Now Available on the Web

About a year an a half ago I worked on a game for the iPhone called Scrap! The game enjoyed a shor...

Scrap!

Unity Web Player - ScrapWeb var hasUnity = DetectUnityWebPlayer(); var brokenUnity = false; ...

"Second Post in a Week!" or "Yet Another Brick Wall"

Well, I said I was going to write more frequently, so I thought I'd get in the habit of it. Ma...