HttpWebClientProtocol.ClientCertificates 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
클라이언트 인증서의 컬렉션을 가져옵니다.
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 클라이언트 인증서를 나타내는 값입니다.
- 특성
예제
다음 코드 예제에서는 파일에서 클라이언트 인증서를 로드한 다음 인증에 클라이언트 인증서를 사용하는 XML 웹 서비스 메서드를 호출하기 ClientCertificates 위해 속성에 추가하는 방법을 보여 줍니다.
// 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(인터넷 정보 서비스) 설명서를 참조하세요.