【问题标题】:Client certificates in wcfwcf 中的客户端证书
【发布时间】:2009-09-10 06:37:26
【问题描述】:

如果客户端使用证书进行身份验证,如何在wcf中使用客户端证书身份验证?

【问题讨论】:

    标签: c# wcf


    【解决方案1】:

    你必须设置

    <transport clientCredentialType="Certificate" />
    

    在您的服务配置中,告诉 WCF 凭据由客户端证书提供。

    并设置 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)

    再见。

    【讨论】:

      猜你喜欢
      • 2012-05-01
      • 1970-01-01
      • 2011-04-09
      • 2013-10-07
      • 1970-01-01
      • 1970-01-01
      • 2013-07-14
      • 1970-01-01
      • 2012-07-28
      相关资源
      最近更新 更多