HttpTransportInformation.ServerCertificate 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 the certificate from the server with the SSL information.
public:
property Certificate ^ ServerCertificate { Certificate ^ get(); };
Certificate ServerCertificate();
public Certificate ServerCertificate { get; }
var certificate = httpTransportInformation.serverCertificate;
Public ReadOnly Property ServerCertificate As Certificate
Property Value
The certificate from the server with the SSL information.
Remarks
This property gets the server certificate used for an SSL connection. This certificate is provided by the server during the SSL connection negotiation. The properties on the Certificate object returned can be used to determine detailed information on the certificate.
This property is useful for notifying the user why an SSL connection failed.
This property can also be used to enforce stronger security than the default connection using the Certificate object returned. The BuildChainAsync methods and other properties on the Certificate object and methods on the CertificateChain object can be used when an app requires stronger security than the standard SSL negotiation.