Windows Vista Beta | WinVistaBeta.com - Message | Using Certificate based authentication with WCF

November 20, 2008  
Subject: Using Certificate based authentication with WCF
Group: microsoft.public.windows.developer.winfx.sdk
Date: 5/15/2006 11:58:01 PM
From: =?Utf-8?B?S2lzaG9yZSBHb3BhbGFu?= [Email Address Protection]

I'm using Jan CTP, and I created a simple Hello World Service with the config
as below and hosted in IIS.

<system.serviceModel>
<services>
<service type="WinFXServiceLibrary1.WCFHelloService,WinFXServiceLibrary1">
<endpoint
address="https://localhost:9500/WCFHello/HelloService.svc"
binding="wsHttpBinding"
contract="WinFXServiceLibrary1.IHelloService,WinFXServiceLibrary1"
bindingConfiguration="bind" />
</service>
</services>

<bindings>
<wsHttpBinding>
<binding name="bind">
<security mode="Transport">
<transport clientCredentialType="Certificate"/>
</security>
</binding>
</wsHttpBinding>
</bindings>

</system.serviceModel>
------

i've done the stuff of creating a certificate with makecert and running
httpcfg over port 9500. When I run svcutil on the above url, it says the "The
remote certificate is invalid according to the validation procedure".

Please let me know what is the problem. Pointers to any source assisting in
using certificate based authentication with WCF will be highly appreciated.

Kishore


Back