通过


将 OEM 测试证书导入验证 OS

在验证 OS 中测试驱动程序时,可能需要将 OEM 测试证书安装到 OS 中。

验证 OS 提供自动执行此过程的脚本:
在 GitHub 上查看脚本

此脚本:

  • 将指定的证书添加到 TestSignRoot 主机系统上的证书存储中。
  • 导出证书的注册表项。
  • 生成可以使用 GenImage 或验证 OS 映像生成器导入的现成导入 .reg 文件。

先决条件

  • 包含 OEM 测试证书的证书文件 (.cer)。
  • 证书的证书指纹。

用法和示例

该脚本需要两个必需参数和一个可选参数:

CertToReg.cmd <cert_path> <cert_thumbprint> [<reg_output_file.reg>]

<cert_path>: Path to the certificate file (for example: c:\temp\oem.cer).

<cert_thumbprint>: The thumbprint of the certificate.

<reg_output_file.reg> (optional): Destination .reg file, it defaults to: c:\temp\oem_sample_cert.reg if not provided.
CertToReg.cmd c:\temp\oem.cer 4ce12345678... c:\temp\oem_testcert.reg