Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UserCertificateEnrollmentManager.ImportPfxDataAsync(String, String, ExportOption, KeyProtectionLevel, InstallOptions, String, String) | importPfxDataAsync(String, String, ExportOption, KeyProtectionLevel, InstallOptions, String, String) method

Applies to Windows and Windows Phone

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

Syntax


userCertificateEnrollmentManager.importPfxDataAsync(pfxData, password, exportable, keyProtectionLevel, installOption, friendlyName, keyStorageProvider).done( /* Your success and error handlers */ );

Parameters

pfxData

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

Base64-encoded PFX message.

password

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

The password used to decrypt and verify the PFX packet. The password must be exactly the same as the password that was used to encrypt the packet.

exportable

Type: ExportOption

A value of the ExportOption enumeration that specifies whether the key can be exported.

keyProtectionLevel

Type: KeyProtectionLevel

A value of the KeyProtectionLevel enumeration that specifies the strength of the key protection. The default is NoConsent.

installOption

Type: InstallOptions

An InstallOptions enumeration value that specifies the certificate installation option.

friendlyName

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

The display name of the enrolled certificate. This value overwrites the FriendlyName property inside the PFX message.

keyStorageProvider

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

The name of the key storage provider to use when importing the certificate.

Return value

Type: IAsyncAction

This method does not return a value.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

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

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

 

 

Show:
© 2014 Microsoft