Message.SenderCertificate Property

Definition

Gets or sets the security certificate used to authenticate messages.

C#
[System.Messaging.MessagingDescription("MsgSenderCertificate")]
public byte[] SenderCertificate { get; set; }

Property Value

Byte[]

An array of byte values that represents a security certificate, which Message Queuing uses to verify the sender of the message. The default is a zero-length array.

Attributes

Exceptions

The message queue is filtered to ignore the SenderCertificate property.

Remarks

The receiving application uses the SenderCertificate property when the message includes an external security certificate.

Message Queuing can authenticate a message using either an internal or external security certificate. Message Queuing provides internal certificates, which are used to verify message integrity. A certification authority provides an external certificate, which you can access through the SenderCertificate property of the message. In addition to allowing Message Queuing to authenticate the message, an external certificate allows the receiving application to further verify the sender. An internal certificate has no usable value to a receiving application.

An external certificate must be registered with the directory service of the Message Queuing system. An external certificate contains information about the certification authority, the certificate user, the validity period of the certificate, the public key of the certificate user, and the certification authority's signature.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also