Message.SenderCertificate Property

Gets or sets the security certificate used to authenticate messages.

Namespace: System.Messaging
Assembly: System.Messaging (in system.messaging.dll)

public byte[] SenderCertificate { get; set; }
/** @property */
public byte[] get_SenderCertificate ()

/** @property */
public void set_SenderCertificate (byte[] value)

public function get SenderCertificate () : byte[]

public function set SenderCertificate (value : byte[])

Not applicable.

Property Value

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.

Exception typeCondition


The message queue is filtered to ignore the SenderCertificate property.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions