2009-09-10 2 views

ответ

2

Вы должны установить

<transport clientCredentialType="Certificate" /> 

в вашей конф службы, чтобы сказать, что WCF crendential предоставляются сертификатом клиента.

и установите messageEncoding = "MTOM"

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

Смотреть это связывает

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.