tags:

views:

122

answers:

1

how to use client certificate authentication in wcf, if the client is using certificate for authentication?

+1  A: 

Hi Jaswant,

You must set

<transport clientCredentialType="Certificate" />

in your service conf, to tell WCF that the crendential are provided by a client certificate.

and set the messageEncoding="Mtom"

<wsHttpBinding>
 <binding name="wshttpconfig" messageEncoding="Mtom">
           <readerQuotas maxArrayLength="64000" />
            <security mode="Transport">
             <transport clientCredentialType="Certificate" />
           </security>
 </binding>
</wsHttpBinding>

See this links

An easy way to use certificates for WCF security

Configuring WCF for client certificate authentication

Using Certificate-based Authentication and Protection with Windows Communication Foundation (WCF)

Bye.

RRUZ