Edit

Share via


Cert2SPC

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.cerOutput.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.