This documentation is archived and is not being maintained.

<messageSenderAuthentication> element

Specifies authentication options for peer-to-peer message senders.

For more information about peer-to-peer programming, see Peer to Peer Networking.

customCertificateValidatorType= "namespace.typeName, [,AssemblyName] [,Version=version number] [,Culture=culture] [,PublicKeyToken=token]"
certificateValidationMode = "ChainTrust/None/PeerTrust/PeerOrChainTrust/Custom"

The following sections describe attributes, child elements, and parent elements


Attribute Description


A type and assembly used to validate a custom type. This attribute must be set when certificateValidationMode is set to Custom.


Specifies one of three modes used to validate credentials. If set to Custom, then a customCertificateValidator must also be supplied.


One of the modes used to check for a revoked certificate lists (CRL).


One of the two system store locations: LocalMachine or CurrentUser. This value is used when a service certificate is negotiated to the client. Validation is performed against the Trusted People store in the specified store location.

Child Elements


Parent Elements

Element Description

<peer> of <clientCredentials> Element

Specifies a credential used for authenticating the client to a peer service.

This element must be configured if message authentication is chosen. For output channels, each message is signed using the certificate provided by <certificate> Element. All messages, before delivered to the application, are checked against the message credential using the validator specified by the customCertificateValidatorType attribute of this element. The validator can either accept or reject the credential.

The following code sets the message sender validation mode to PeerOrChainTrust.

  <behavior name="MyEndpointBehavior">
      <certificate findValue="" 
                   x509FindType="FindByIssuerName" />
          certificateValidationMode="PeerOrChainTrust" />
       <messageSenderAuthentication certificateValidationMode="None" />