Share via


CertificateLoader.LoadFromStoreCert 메서드

정의

인증서 저장소에서 인증서를 로드합니다.

public:
 static System::Security::Cryptography::X509Certificates::X509Certificate2 ^ LoadFromStoreCert(System::String ^ subject, System::String ^ storeName, System::Security::Cryptography::X509Certificates::StoreLocation storeLocation, bool allowInvalid);
public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadFromStoreCert (string subject, string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, bool allowInvalid);
static member LoadFromStoreCert : string * string * System.Security.Cryptography.X509Certificates.StoreLocation * bool -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Shared Function LoadFromStoreCert (subject As String, storeName As String, storeLocation As StoreLocation, allowInvalid As Boolean) As X509Certificate2

매개 변수

subject
String

인증서 주체입니다.

storeName
String

인증서 저장소 이름입니다.

storeLocation
StoreLocation

인증서 저장소 위치입니다.

allowInvalid
Boolean

잘못된 것으로 간주되는 인증서를 로드할지 여부입니다.

반환

로드된 인증서입니다.

설명

정확한 주체 일치 항목이 있는 경우 로드되고, 그렇지 않으면 제공된 주체가 포함된 주체 이름과 가장 일치하는 인증서가 로드됩니다. 주체 비교는 대/소문자를 구분하지 않습니다.

적용 대상