CertificateEnrollmentManager 클래스

정의

인증서 등록 관리자를 나타냅니다.

public ref class CertificateEnrollmentManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CertificateEnrollmentManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class CertificateEnrollmentManager
Public Class CertificateEnrollmentManager
상속
Object Platform::Object IInspectable CertificateEnrollmentManager
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

using Windows.Security.Cryptography.Certificates;
using System.Threading.Tasks;

namespace SampleCertificateEnrollmentManager
{

    sealed partial class CertEnrollMgrApp : Application
    {
        public CertEnrollMgrApp()
        {
            // Initialize the application.
            this.InitializeComponent();

            // Create a certificate request.
            this.GetCertificateRequest();
        }

        public async void GetCertificateRequest()
        {
            // Create a certificate request asynchronously.
            String certificateRequest = await this.SampleCreateRequest();
        }

        public async Task<String>SampleCreateRequest()
        {
            // Create a CertificateRequestProperties object.
            CertificateRequestProperties requestProp = new CertificateRequestProperties();

            // Assign a subject name to the properties object.
            requestProp.Subject = "SampleRequest";

            // Create a certificate request.
            String strRequest = await CertificateEnrollmentManager.CreateRequestAsync(requestProp);

            // Return the request string.
            return strRequest;
        }
    }
}

설명

CreateRequestAsync 메서드를 호출하여 CertificateEnrollmentManager 개체의 instance 만듭니다.

이 클래스에는 정적 속성만 포함됩니다. 속성을 검색하기 위해 클래스의 instance 만들 필요가 없습니다. 대신 클래스 이름 뒤에 점 연산자(.) 뒤에 속성 이름을 사용합니다.

속성

UserCertificateEnrollmentManager

연결된 UserCertificateEnrollmentManager를 가져옵니다.

메서드

CreateRequestAsync(CertificateRequestProperties)

CertificateRequestProperties 개체에 지정된 속성을 기반으로 PKCS #10 인증서 요청을 비동기적으로 만듭니다.

ImportPfxDataAsync(String, String, ExportOption, KeyProtectionLevel, InstallOptions, String)

PFX(개인 정보 교환) 메시지에서 인증서를 비동기적으로 가져옵니다.

ImportPfxDataAsync(String, String, ExportOption, KeyProtectionLevel, InstallOptions, String, String)

지정된 키 스토리지 공급자를 사용하여 PFX(개인 정보 교환) 메시지에서 인증서를 비동기적으로 가져옵니다.

ImportPfxDataAsync(String, String, PfxImportParameters)

가져오기 매개 변수를 사용하여 PFX(개인 정보 교환) 메시지에서 인증서를 비동기적으로 가져옵니다.

InstallCertificateAsync(String, InstallOptions)

로컬 컴퓨터의 앱 컨테이너에 인증서 체인을 비동기적으로 설치합니다.

적용 대상

추가 정보