私はクライアント証明書を要求したい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