CertificateEnrollmentManager.InstallCertificateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously Installs a certificate chain into the app container on the local computer.
public:
static IAsyncAction ^ InstallCertificateAsync(Platform::String ^ certificate, InstallOptions installOption);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncAction InstallCertificateAsync(winrt::hstring const& certificate, InstallOptions const& installOption);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction InstallCertificateAsync(string certificate, InstallOptions installOption);
function installCertificateAsync(certificate, installOption)
Public Shared Function InstallCertificateAsync (certificate As String, installOption As InstallOptions) As IAsyncAction
Parameters
- certificate
-
String
Platform::String
winrt::hstring
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
- InstallOptions
An InstallOptions enumeration value that specifies the certificate installation option.
Returns
This method does not return a value.
- Attributes
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.