大网数据广告活动
账户与安全

Cert2SPC Tool - Create Test Software Publisher

· 52CE 我爱测

Learn how to use the Cert2SPC tool to create test Software Publisher Certificates from X.509 certificates in the Windows SDK for development purposes.

The Cert2SPC tool creates test Software Publisher Certificates (SPCs) from existing X.509 certificates, enabling developers to generate test certificates for code signing during development. Cert2SPC can wrap multiple X.509 certificates into a PKCS #7 signed-data object. The tool is installed in the \Bin folder of the Microsoft Windows Software Development Kit (SDK) installation path.

Cert2SPC is available as part of the Windows SDK, which you can download here.

Note: This tool is for test purposes only. A valid SPC is obtained from a certification authority.

Syntax

Use the following syntax to create a test SPC:

Cert2SPC Cert1.cer Cert2.cer … Output.spc

Parameters

The following parameters are required:

Parameters Description
Cert1.cer Cert2.cer … Names of the X.509 certificates to include in the SPC. Each certificate name ends with the .cer extension.
Output.spc Name of the PKCS #7 object that contains the X.509 certificates to be created. The output file name ends with the .spc extension.

Related content

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 08/21/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。