WCF and certificate-based authentication

By DimitriC at October 06, 2011 08:30
Filed Under: Architecture, Programming, Security, tips & tricks, WCF

If you want your WCF service to use certificate-based (X.509) certification to authenticate the users accessing your service, you’ll need to provide the right configuration on both the client and the server side. The keyword here is configuration. When I first started searching for a solution I knew it had to be done in the configuration file, but, as usual, I kind of underestimated the amount of configuring that had to be done.

 

Especially when you’re looking at the generated configuration file provided by Visual Studio, it’s easy to get lost in all the possible security settings. I once attended a course given by Juval Löwy (IDesign) on WCF where he applauded the fact that the WCF-team had made everything configurable and at the same time warned us for the complexity that came with it.

 

The solution: There is a easy-to-follow example where you can learn how certificate-based authentication for WCF can be done at Mitch Denny’s blog - Using Certificate-based Authentication and Protection with Windows Communication Foundation (WCF)

 

He starts out by creating a simple WCF service (with 1 HelloWorld-method) and afterwards adding the authentication configuration.

Comments (7) -

10/26/2011 8:05:24 AM #

To accomplish a good result in Search engine optimization web advertising technique is to comprehend keywords and accomplish outcomes to create cash on-line.

James

10/26/2011 2:46:07 PM #

Really liking the information on this website. I am truly happy to post my comment on your website.

Hot Funny Club United States

11/4/2011 11:21:41 PM #

Its cherish you understand my ideas! You seem to clutch so much approximately this, cherish you wrote the e-reserve in it or something. I perceive that you could do with a few p.c. to compel the missive house a diminutive blade, notwithstanding further than that, this is impressive blog. A impressive predict. I’ll yes be back

louer riad France

11/6/2011 11:07:29 PM #

Hello, i consider that i noticed you visited my blog so i got here to ?go backward the elect?.I’m attempting to discovery objects to increase my website!I surmise its beneficial fully to function a limited of your ideas!!

Guide Marrakech France

11/12/2011 9:53:14 PM #

Exceedingly interesting info !Refine right what I was searching for!

voir Marrakech France

11/15/2011 7:22:01 AM #

I possess recently started a blog, the report you endow on this website has helped me greatly. Blesss for total of your epoch & process. “It is no employ motto, ‘We are doing our cream.’ You contain got to arrive in doing what is important.” by Sir Winston Churchill.

credit immobilier au maroc France

11/20/2011 8:05:30 PM #

Thanks for good information that comes out to read.

Cigarette electronique France

11/21/2011 7:28:41 AM #

Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.

SJR Luxuria United States

11/30/2011 5:04:46 PM #

agence immobiliere grenoble et sa region

vente appartement United States

Comments are closed