HttpWebClientProtocol.ClientCertificates 속성

정의

클라이언트 인증서의 컬렉션을 가져옵니다.

public:
 property System::Security::Cryptography::X509Certificates::X509CertificateCollection ^ ClientCertificates { System::Security::Cryptography::X509Certificates::X509CertificateCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ClientCertificates : System.Security.Cryptography.X509Certificates.X509CertificateCollection
Public ReadOnly Property ClientCertificates As X509CertificateCollection

속성 값

X509CertificateCollection

클라이언트 인증서를 나타내는 X509CertificateCollection입니다.

특성

예제

다음 코드 예제에는 파일에서 클라이언트 인증서를 로드 한 후에 추가 하는 방법을 보여 줍니다.는 ClientCertificates 인증용 클라이언트 인증서를 사용 하는 XML 웹 서비스 메서드를 호출 하는 것에 대 한 속성입니다.

// Create a new instance of a proxy class for the Bank XML Web service.
BankSession bank = new BankSession();

// Load the client certificate from a file.
X509Certificate x509 = X509Certificate.CreateFromCertFile(@"c:\user.cer");

// Add the client certificate to the ClientCertificates property of the proxy class.
bank.ClientCertificates.Add(x509);

// Communicate with the Deposit XML Web service method,
// which requires authentication using client certificates.
bank.Deposit(500);
' Create a new instance of a proxy class for the Bank XML Web service.
Dim bank As BankSession = new BankSession()

' Load the client certificate from a file.
Dim x509 As X509Certificate = X509Certificate.CreateFromCertFile("c:\user.cer")

' Add the client certificate to the ClientCertificates property of the proxy class.
bank.ClientCertificates.Add(x509)

' Communicate with the Deposit XML Web service method,
' which requires authentication using client certificates.
bank.Deposit(500)

설명

이 속성에는 클라이언트가 XML 웹 서비스 메서드를 호출 하는 경우 하나 이상의 클라이언트 인증서 라고도 Authenticode X.509 v.3 인증서를 전달할 수 있습니다. 클라이언트 인증서를 사용 하도록 XML 웹 서비스 메서드를 구성한 경우 클라이언트 인증서는 클라이언트 인증 메커니즘으로 사용할 수 있습니다. 클라이언트 인증서 설정에 대 한 내용은 인터넷 정보 서비스 (IIS) 설명서를 참조 합니다.

적용 대상

추가 정보