System.Web.HttpWorkerRequest.GetClientCertificate Method

When overridden in a derived class, gets the certification fields (specified in the X.509 standard) from a request issued by the client.

Syntax

public virtual byte[] GetClientCertificate ()

Returns

A byte array containing the stream of the entire certificate content.

Remarks

If no certificate is sent, the HttpRequest.ClientCertificate collection returns empty.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0