System.Web Namespace HttpRequest Class
Gets the current request's client security certificate.
[ VB ]
Public ReadOnly Property ClientCertificate As HttpClientCertificate
[ C# ]
public HttpClientCertificate ClientCertificate {get;}
[ C++ ]
public: __property HttpClientCertificate* get_ClientCertificate ( );
[ JScript ]
public function get ClientCertificate ( ) : HttpClientCertificate;
An HttpClientCertificate object containing information on client's security certificate settings.
The following example renders the current client's certificate settings into an HTML table.
<table width=50% cellspacing=1 class="data" >
<tr>
<th colspan=2>Current ClientCertificate Settings</th></tr>
<tr>
<td>Certificate</td>
<td><%= Request.ClientCertificate.Certificate %></td></tr>
<tr>
<td>Cookie</td>
<td><%= Request.ClientCertificate.Cookie %></td></tr>
<tr>
<td>Flags</td>
<td><%= Request.ClientCertificate.Flags %></td></tr>
<tr>
<td>IsPresent</td>
<td><%= Request.ClientCertificate.IsPresent %></td></tr>
<tr>
<td>Issuer</td>
<td><%= Request.ClientCertificate.Issuer %></td></tr>
<tr>
<td>IsValid</td>
<td><%= Request.ClientCertificate.IsValid %></td></tr>
<tr>
<td>KeySize</td>
<td><%= Request.ClientCertificate.KeySize %></td></tr>
<tr>
<td>SecretKeySize</td>
<td><%= Request.ClientCertificate.SecretKeySize %></td></tr>
<tr>
<td>SerialNumber</td>
<td><%= Request.ClientCertificate.SerialNumber %></td></tr>
<tr>
<td>ServerIssuer</td>
<td><%= Request.ClientCertificate.ServerIssuer %></td></tr>
<tr>
<td>ServerSubject</td>
<td><%= Request.ClientCertificate.ServerSubject %></td></tr>
<tr>
<td>Subject</td>
<td><%= Request.ClientCertificate.Subject %></td></tr>
<tr>
<td>ValidFrom</td>
<td><%= Request.ClientCertificate.ValidFrom %></td></tr>
<tr>
<td>ValidUntil</td>
<td><%= Request.ClientCertificate.ValidUntil %></td></tr>
</table>
Show me
HttpRequest Members