Jaswant Agarwal
Jaswant Agarwal

Reputation: 4915

Client certificates in wcf

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

Upvotes: 1

Views: 2157

Answers (1)

RRUZ
RRUZ

Reputation: 136441

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.

Upvotes: 2

Related Questions