Share via


UserCertificateEnrollmentManager Class

Definition

Provides access to certificate creation, import, and enrollment methods.

public ref class UserCertificateEnrollmentManager 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 UserCertificateEnrollmentManager 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 sealed class UserCertificateEnrollmentManager
Public NotInheritable Class UserCertificateEnrollmentManager
Inheritance
Object Platform::Object IInspectable UserCertificateEnrollmentManager
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
sharedUserCertificates

Remarks

To use this API, you must enable the sharedUserCertificates capability so it can install certificates into the shared user store. For more information on enabling the sharedUserCertificates capability, see App capability declarations.

Methods

CreateRequestAsync(CertificateRequestProperties)

Asynchronously creates a PKCS #10 certificate request based on properties specified in a CertificateRequestProperties object.

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

Asynchronously imports a certificate from a Personal Information Exchange (PFX) message using the specified key storage provider.

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

Asynchronously imports a user certificate from a Personal Information Exchange (PFX) message.

ImportPfxDataAsync(String, String, PfxImportParameters)

Asynchronously imports a certificate from a Personal Information Exchange (PFX) message using the specified import parameters.

InstallCertificateAsync(String, InstallOptions)

Asynchronously installs a certificate chain into the app container on the local computer.

Applies to