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