【发布时间】:2012-12-02 09:21:31
【问题描述】:
如何配置 WCF 以使用带有客户端证书的 HTTP(无 ssl)?
在服务端,我尝试了以下方法:
<bindings>
<basicHttpBinding>
<binding name="binding1">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Certificate"></transport>
</security>
</binding>
</basicHttpBinding>
</bindings
但它抱怨:
Certificate-based client authentication is not supported in TransportCredentialOnly security mode. Select the Transport security mode.
谢谢,
【问题讨论】:
-
当你将它设置为
Transport时会发生什么? -
传输意味着它需要 SSL 和 HTTPS 地址,这不是我想要的。我只需要测试客户端证书是否正常工作。
标签: c# asp.net wcf ssl transport