X509CertificateInitiatorServiceCredential.Certificate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the certificate to use in MutualCertificateDuplex
message security authentication mode.
public:
property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Certificate { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); void set(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate { get; set; }
member this.Certificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property Certificate As X509Certificate2
Property Value
The X509Certificate2 to use to encrypt messages sent to the client by the service in the uncorrelated duplex transport case if the MutualCertificateDuplex
message security authentication mode is used.
Exceptions
An attempt was made to set a read-only credential.
Examples
The following code shows how to use this property to get the certificate.
Remarks
This property is used for bindings that are configured to message security mode when MutualCertificateDuplex
message security authentication mode is used.
Applies to
.NET