asp.net.ph

Request.ClientCertificate Property

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;

Property Value

An HttpClientCertificate object containing information on client's security certificate settings.

Example

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 

See Also

HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph