<certificate> for <identity>
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>
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.