다음을 통해 공유


HttpRequest.ClientCertificate 속성

정의

현재 요청의 클라이언트 보안 인증서를 가져옵니다.

public:
 property System::Web::HttpClientCertificate ^ ClientCertificate { System::Web::HttpClientCertificate ^ get(); };
public System.Web.HttpClientCertificate ClientCertificate { get; }
member this.ClientCertificate : System.Web.HttpClientCertificate
Public ReadOnly Property ClientCertificate As HttpClientCertificate

속성 값

HttpClientCertificate

클라이언트의 보안 인증서 설정에 대한 정보가 들어 있는 HttpClientCertificate 개체입니다.

예제

다음 코드 예제에서는 HTML 페이지에서 클라이언트의 인증서 설정을 클라이언트에 다시 보냅니다.

HttpClientCertificate cs = Request.ClientCertificate;

Response.Write("ClientCertificate Settings:<br>");
Response.Write("Certificate = " + cs.Certificate + "<br>");
Response.Write("Cookie = " + cs.Cookie + "<br>");
Response.Write("Flags = " + cs.Flags + "<br>");
Response.Write("IsPresent = " + cs.IsPresent + "<br>");
Response.Write("Issuer = " + cs.Issuer + "<br>");
Response.Write("IsValid = " + cs.IsValid + "<br>");
Response.Write("KeySize = " + cs.KeySize + "<br>");
Response.Write("SecretKeySize = " + cs.SecretKeySize + "<br>");
Response.Write("SerialNumber = " + cs.SerialNumber + "<br>");
Response.Write("ServerIssuer = " + cs.ServerIssuer + "<br>");
Response.Write("ServerSubject = " + cs.ServerSubject + "<br>");
Response.Write("Subject = " + cs.Subject + "<br>");
Response.Write("ValidFrom = " + cs.ValidFrom + "<br>");
Response.Write("ValidUntil = " + cs.ValidUntil + "<br>");
Response.Write("What's this = " + cs.ToString() + "<br>");

   Dim cs As HttpClientCertificate = Request.ClientCertificate

   Response.Write("<p>Client Certificate settings:</p>")
   Response.Write("Certificate = " & cs.Certificate.ToString() & "<br>")
   Response.Write("Cookie = " & cs.Cookie & "<br>")
   Response.Write("Flags = " & cs.Flags & "<br>")
   Response.Write("IsPresent = " & cs.IsPresent & "<br>")
   Response.Write("Issuer = " & cs.Issuer & "<br>")
   Response.Write("IsValid = " & cs.IsValid & "<br>")
   Response.Write("KeySize = " & cs.KeySize & "<br>")
   Response.Write("SecretKeySize = " & cs.SecretKeySize & "<br>")
   Response.Write("SerialNumber = " & cs.SerialNumber & "<br>")
   Response.Write("ServerIssuer = " & cs.ServerIssuer & "<br>")
   Response.Write("ServerSubject = " & cs.ServerSubject & "<br>")
   Response.Write("Subject = " & cs.Subject & "<br>")
   Response.Write("ValidFrom = " & cs.ValidFrom & "<br>")
   Response.Write("ValidUntil = " & cs.ValidUntil & "<br>")
   Response.Write("What's this = " & cs.ToString() & "<br>")
   

적용 대상