Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies an X.509 certificate used to validate a server to a client.
For more information about setting the element value, see Service Identity and Authentication.
<configuration>
<system.serviceModel>
<client>
<endpoint>
<identity>
<certificate>
Syntax
<certificate encodedValue = "String" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
encodedValue | A Base64 encoding of the certificate. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
<identity> | Specifies the identity of the service to be authenticated by the client. |
Example
The following code specifies the encoded representation of a certificate used to validate a server to a client.
<identity>
<certificate encodedValue="MIIBxjCCAXSgAwIBAgIQmXJgyu9tro1M98GifjtuoDAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTA2MDUxNzIxNDQyNVoXDTM5MTIzMTIzNTk1OVowKTEQMA4GA1UEChMHQ29udG9zbzEVMBMGA1UEAxMMaWRlbnRpdHkuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBmivcb8hYbh11hqVoDuB7zmJ2y230f" />
</identity>