CertificateEnrollmentManager.ImportPfxDataAsync 方法

定义

重载

ImportPfxDataAsync(String, String, PfxImportParameters)

使用导入参数从个人信息交换 (PFX) 消息异步导入证书。

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

从个人信息交换异步导入证书, (PFX) 消息。

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

使用指定的密钥存储提供程序从个人信息交换 (PFX) 消息异步导入证书。

ImportPfxDataAsync(String, String, PfxImportParameters)

使用导入参数从个人信息交换 (PFX) 消息异步导入证书。

public:
 static IAsyncAction ^ ImportPfxDataAsync(Platform::String ^ pfxData, Platform::String ^ password, PfxImportParameters ^ pfxImportParameters);
/// [Windows.Foundation.Metadata.Overload("ImportPfxDataToKspWithParametersAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction ImportPfxDataAsync(winrt::hstring const& pfxData, winrt::hstring const& password, PfxImportParameters const& pfxImportParameters);
[Windows.Foundation.Metadata.Overload("ImportPfxDataToKspWithParametersAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction ImportPfxDataAsync(string pfxData, string password, PfxImportParameters pfxImportParameters);
function importPfxDataAsync(pfxData, password, pfxImportParameters)
Public Shared Function ImportPfxDataAsync (pfxData As String, password As String, pfxImportParameters As PfxImportParameters) As IAsyncAction

参数

pfxData
String

Platform::String

winrt::hstring

Base64 编码的 PFX 消息。

password
String

Platform::String

winrt::hstring

用于解密和验证 PFX 数据包的密码。 密码必须与用于加密数据包的密码完全相同。

pfxImportParameters
PfxImportParameters

PFX 导入参数。

返回

此方法不返回值。

属性

另请参阅

适用于

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

从个人信息交换异步导入证书, (PFX) 消息。

public:
 static IAsyncAction ^ ImportPfxDataAsync(Platform::String ^ pfxData, Platform::String ^ password, ExportOption exportable, KeyProtectionLevel keyProtectionLevel, InstallOptions installOption, Platform::String ^ friendlyName);
/// [Windows.Foundation.Metadata.Overload("ImportPfxDataAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction ImportPfxDataAsync(winrt::hstring const& pfxData, winrt::hstring const& password, ExportOption const& exportable, KeyProtectionLevel const& keyProtectionLevel, InstallOptions const& installOption, winrt::hstring const& friendlyName);
[Windows.Foundation.Metadata.Overload("ImportPfxDataAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction ImportPfxDataAsync(string pfxData, string password, ExportOption exportable, KeyProtectionLevel keyProtectionLevel, InstallOptions installOption, string friendlyName);
function importPfxDataAsync(pfxData, password, exportable, keyProtectionLevel, installOption, friendlyName)
Public Shared Function ImportPfxDataAsync (pfxData As String, password As String, exportable As ExportOption, keyProtectionLevel As KeyProtectionLevel, installOption As InstallOptions, friendlyName As String) As IAsyncAction

参数

pfxData
String

Platform::String

winrt::hstring

Base64 编码的 PFX 消息。

password
String

Platform::String

winrt::hstring

用于解密和验证 PFX 数据包的密码。 密码必须与用于加密数据包的密码完全相同。

exportable
ExportOption

ExportOption 枚举的值,该值指定是否可以导出密钥。

keyProtectionLevel
KeyProtectionLevel

KeyProtectionLevel 枚举的值,该值指定密钥保护的强度。 默认值为 NoConsent

installOption
InstallOptions

一个 InstallOptions 枚举值,该值指定证书安装选项。

friendlyName
String

Platform::String

winrt::hstring

已注册证书的显示名称。 此值覆盖 PFX 消息中的 FriendlyName 属性。

返回

此方法不返回值。

属性

注解

此方法将证书链导入应用容器。

  • 若要导入颁发的证书,无需在导入计算机上生成证书请求。
  • 响应中包含的证书无需链接到导入计算机上的受信任根证书。
  • 证书安装在应用容器 MY 存储中。
  • 证书颁发机构 和根证书安装在应用容器中间 证书颁发机构 存储中。
  • 导入证书的密钥容器名称和密钥规范按 PFXImportCertStore 的备注部分所述确定,但如果不存在 AttributeId 1.3.6.1.4.1.1.311.17.1,MS_KEY_STORAGE_PROVIDER始终用作提供程序名称。

另请参阅

适用于

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

使用指定的密钥存储提供程序从个人信息交换 (PFX) 消息异步导入证书。

public:
 static IAsyncAction ^ ImportPfxDataAsync(Platform::String ^ pfxData, Platform::String ^ password, ExportOption exportable, KeyProtectionLevel keyProtectionLevel, InstallOptions installOption, Platform::String ^ friendlyName, Platform::String ^ keyStorageProvider);
/// [Windows.Foundation.Metadata.Overload("ImportPfxDataToKspAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction ImportPfxDataAsync(winrt::hstring const& pfxData, winrt::hstring const& password, ExportOption const& exportable, KeyProtectionLevel const& keyProtectionLevel, InstallOptions const& installOption, winrt::hstring const& friendlyName, winrt::hstring const& keyStorageProvider);
[Windows.Foundation.Metadata.Overload("ImportPfxDataToKspAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction ImportPfxDataAsync(string pfxData, string password, ExportOption exportable, KeyProtectionLevel keyProtectionLevel, InstallOptions installOption, string friendlyName, string keyStorageProvider);
function importPfxDataAsync(pfxData, password, exportable, keyProtectionLevel, installOption, friendlyName, keyStorageProvider)
Public Shared Function ImportPfxDataAsync (pfxData As String, password As String, exportable As ExportOption, keyProtectionLevel As KeyProtectionLevel, installOption As InstallOptions, friendlyName As String, keyStorageProvider As String) As IAsyncAction

参数

pfxData
String

Platform::String

winrt::hstring

Base64 编码的 PFX 消息。

password
String

Platform::String

winrt::hstring

用于解密和验证 PFX 数据包的密码。 密码必须与用于加密数据包的密码完全相同。

exportable
ExportOption

ExportOption 枚举的值,该值指定是否可以导出密钥。

keyProtectionLevel
KeyProtectionLevel

KeyProtectionLevel 枚举的值,该值指定密钥保护的强度。 默认值为 NoConsent

installOption
InstallOptions

一个 InstallOptions 枚举值,该值指定证书安装选项。

friendlyName
String

Platform::String

winrt::hstring

已注册证书的显示名称。 此值覆盖 PFX 消息中的 FriendlyName 属性。

keyStorageProvider
String

Platform::String

winrt::hstring

导入证书时要使用的密钥存储提供程序的名称。

返回

此方法不返回值。

属性

注解

此方法将证书链导入应用容器。

  • 若要导入颁发的证书,无需在导入计算机上生成证书请求。
  • 响应中包含的证书无需链接到导入计算机上的受信任根证书。
  • 证书安装在应用容器 MY 存储中。
  • 证书颁发机构 和根证书安装在应用容器中间 证书颁发机构 存储中。
  • 导入证书的密钥容器名称和密钥规范按 PFXImportCertStore 的备注部分所述确定,但如果不存在 AttributeId 1.3.6.1.4.1.1.311.17.1,MS_KEY_STORAGE_PROVIDER始终用作提供程序名称。

另请参阅

适用于