importPFXFlags 枚举 (certenroll.h)

[一些信息与预发布产品相关,在商业发行之前可能发生实质性修改。 Microsoft 对于此处提供的信息不作任何明示或默示的担保。]

导入 PFX 证书时要使用的标志。

语法

typedef enum ImportPFXFlags {
  ImportNone = 0,
  ImportMachineContext = 0x1,
  ImportForceOverwrite = 0x2,
  ImportSilent = 0x4,
  ImportSaveProperties = 0x8,
  ImportExportable = 0x10,
  ImportExportableEncrypted = 0x20,
  ImportNoUserProtected = 0x40,
  ImportUserProtected = 0x80,
  ImportUserProtectedHigh = 0x100,
  ImportInstallCertificate = 0x200,
  ImportInstallChain = 0x400,
  ImportInstallChainAndRoot = 0x800
} ;

常量

 
ImportNone
值: 0
ImportMachineContext
值: 0x1
将 PFX 证书导入计算机证书存储;否则,请安装到用户证书存储区。
ImportForceOverwrite
值: 0x2
覆盖现有证书(如果存在)。
ImportSilent
值: 0x4
以无提示方式执行操作, (不显示用户界面) 。
ImportSaveProperties
值: 0x8
保存导入的 PFX 文件的属性。
ImportExportable
值: 0x10
将 PFX 证书的私钥导入为可导出
ImportExportableEncrypted
值: 0x20
将 PFX 证书的私钥导入为可导出和加密的密钥。
ImportNoUserProtected
值: 0x40
导入 PFX 证书的私钥,无需同意。
ImportUserProtected
值: 0x80
导入 PFX 证书的私钥,无需密码即可获得同意。
ImportUserProtectedHigh
值: 0x100
导入 PFX 证书的私钥,要求使用密码同意。
ImportInstallCertificate
值: 0x200
将 PFX 证书安装到证书存储。
ImportInstallChain
值: 0x400
将 PFX 证书链安装到证书存储。
ImportInstallChainAndRoot
值: 0x800
将 PFX 证书的链和根安装到证书存储。

要求

要求
Header certenroll.h