The Cert2SPC utility creates a test software publisher certificate (SPC) using existing X.509 certificates. Cert2SPC can wrap multiple X.509 certificates into a PKCS #7 signed-data object. For the latest documentation on Cert2spc, see the CryptoAPI Tools section of the MSDN Library.
Note This utility is for test purposes only. A valid SPC is obtained from a certificate authority (CA).
For more information on application security, see the Platform SDK, Security section of the MSDN Library.
Cert2SPC cert1.cer cert2.cer. . .certN.cer output.spc
cert1...certN
Names of the X.509 certificates to include in the SPC. Each certificate name ends with the .cer extension.
output
Name of the PKCS #7 object containing the X.509 certificates to be created. The output file name ends with the .spc extension.
The following command wraps an X.509 certificate, MyCert.cer, into a test PKCS #7 software publisher's certificate (SPC), called MyCert.spc. The SPC created is to be used for test purposes only. An SPC to be used to sign code to be distributed to the public must be obtained from GTE, VeriSign, Inc., or another trusted CA.
Cert2SPC MyCert.cer MyCert.spc