<clientCredentials> 的 <serviceCertificate> 元素

指定客户端对服务进行身份验证时使用的证书。

<system.serviceModel>
  <behaviors>
    <endpointBehaviors>
      <endpointBehaviors> 的 <behavior>
        <clientCredentials>
          <clientCredentials> 的 <serviceCertificate> 元素

<serviceCertificate />

属性和元素

属性

无。

子元素

元素 说明

<defaultCertificate> 元素

指定在服务或 STS 未通过协商协议提供证书时要使用的 X.509 证书。

<scopedCertificates> 元素

表示特定服务为身份验证提供的 X.509(作用域)证书的集合。此集合通常用于指定联合方案中安全令牌服务的服务证书。

<serviceCertificate> 的 <authentication> 元素

指定客户端使用的服务证书的身份验证行为。

父元素

元素 说明

<clientCredentials>

指定客户端用于向服务证明自己的身份的凭据。

备注

此配置元素指定客户端在验证使用 SSL 身份验证的服务所出示的证书时使用的设置。它还包含在客户端上显式配置为对发送给使用消息安全的服务的消息进行加密的服务的所有证书。

serviceCertificate 元素的属性与 <clientCredentials> 的 <clientCertificate> 元素 的属性相同。

另请参见

参考

ClientCredentialsElement
ServiceCertificate
ClientCredentials
ServiceCertificate
X509RecipientCertificateClientElement
X509CertificateRecipientClientCredential

其他资源

Security Behaviors in WCF
Securing Clients
Working with Certificates
Securing Services and Clients