Windows Dev Center

CertificateEnrollmentManager.InstallCertificateAsync | installCertificateAsync method

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

Syntax


Windows.Security.Cryptography.Certificates.CertificateEnrollmentManager.installCertificateAsync(certificate, installOption).done( /* Your success and error handlers */ );

Parameters

certificate

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The encoded certificate. The certificate is encoded by using Distinguished Encoding Rules (DER) as defined by the Abstract Syntax Notation One (ASN.1) standard.

installOption

Type: InstallOptions

An InstallOptions enumeration value that specifies the certificate installation option.

Return value

Type: IAsyncAction

This method does not return a value.

Remarks

This method installs the certificate chain into the app container:

  • The certificate request for the input certificate must have been previously generated on the local computer by calling the CreateRequestAsync method.
  • The certificates included in the response need not be chained to trusted root certificates on the installing computer.
  • The certificate is installed in the app container MY store.
  • Certification authority (CA) and Root certificates are installed in the app container intermediate CA store.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Security.Cryptography.Certificates
Windows::Security::Cryptography::Certificates [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Security.Cryptography.Certificates
Windows::Security::Cryptography::Certificates [C++]

Metadata

Windows.winmd

See also

CertificateEnrollmentManager

 

 

Show:
© 2015 Microsoft