NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Software Publisher Certificate Test Utility (Cert2spc.exe)

The Software Publisher Certificate test utility (Cert2spc.exe) creates a Software Publisher's Certificate (SPC) from one or more X.509 certificates. This utility, like the Makecert utility, is for test purposes only. A valid SPC is obtained from a Certification Authority (CA) such as VeriSign or Thawte.

Syntax

cert2spc cert1.cer cert2.cer … certN.cer outputSPCfile.spc
Argument Description
certN.cer Specifies the name of an X.509 certificate to include in the SPC file. You may include multiple entries separated by spaces.
outputSPCfile.spc Specifies the name of the PKCS #7 object that will contain the specified X.509 certificates. The SPC file can be used as input to the signcode tool.

Examples

The following example creates an SPC from myCertificate.cer and places it in mySPCFile.spc.

cert2spc myCertificate.cer mySPCFile.spc

The following example creates an SPC from oneCertificate.cer and twoCertificate.cer and places it in mySPCFile.spc.

cert2spc oneCertificate.cer twoCertificate.cer mySPCFile.spc

See Also

Certificate Creation Utility (makecert.exe)