0
我有一個REST服務,我想要求客戶端證書。該system.serviceModel
如下所示:將客戶端證書添加到standardEndpoint?
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<standardEndpoints>
<webHttpEndpoint>
<!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
via the attributes on the <standardEndpoint> element below
-->
<standardEndpoint name="TestService" helpEnabled="true" automaticFormatSelectionEnabled="true"/>
</webHttpEndpoint>
</standardEndpoints>
</system.serviceModel>
我試圖修改standardEndpoint是:
<standardEndpoint name="TestService" helpEnabled="true" automaticFormatSelectionEnabled="true">
<security mode="Transport">
<transport clientCredentialType="Certificate" />
</security>
</standardEndpoint>
但是這並沒有幫助。我缺少什麼來啓用客戶端證書?
您是否在IIS上映射了相同的設置? – Rajesh 2012-04-10 14:59:18