SignCode Property

 Object: Archive
 Syntax: SignCode
 Type:
 Read/Write:
 Description: This property indicates the pathname of the signcode.exe file. This property is for Microsoft Cabinet format only.

In the following table, the columns contain the following information:
  • Property. The name of the property you use to set the value of the parameter listed in the third column. Note that the property should not include the switch listed in the second column.
  • Switch. The switch evoked in signcode.exe by using the property (listed in the first column).
  • Parameter. Parameter for signcode.exe.
  • Description. Description of parameter

  Maps to SignCode Information
Property Switch Parameter Description
SPCFile -spc <file> SPC file containing software publishing certificates.
PFKFile -v <pvkfile> PVK file containing the private key.
KeyName -k <KeyName> Key container name.
SignedFileTextName -n <name> Text name representing content of the file to be signed.
Info -i <info> Location to find more information about content (usually a URL).
Provider -p <provider> Name of the cryptographic provider on the system.
Cryptype -y <type> Cryptographic provider type to use.
KeyType -ky <keytype> Key type.
<signature|exchange|<integer>>
Authority -$ <authority> Signing authority of the certificate.
<individual|commercial>
Default to using certificate's highest capability.
Algorithm -a <algorithm> Hashing algorithm for signing.
<md5|sha1>
Defaults to md5.
TimeStampURL -t <URL> TimeStamp server's http address.
TimeStampTrialCount -tr <number> The number of timestamp trials until succeeds. Defaults to 1.
TimeSTampTrialDelay -tw <number> The number of seconds delay between each timestamp. Defaults to 0.
DllNameSignature -j <dllName > Name of the dll that provides attributes of the signature.
DllSignatureParam -jp <param> Parameter to be passed to the dll.
X509File -c <file> X509 file containing encoded software publishing certificate.
StoreCert -s <store> Cert store containing certs. Default to my store.
Location -r <location> Location of the cert store in the registry.
<localMachine|currentUser>
Defaults to currentUser.
Policy -sp <policy> Add all the certificates in the chain or add until one cert in the chain is from the spc store.
<chain|spcstore>
Defaults to spcstore.
CommonName -cn
-x
<name> The common name of the certificate. Do not sign the file. Only Timestamp the file.

To sign with a SPC file, the required options are -spc and -v if your private key is in a PVK file. If your private key is in a registry key container, the required options are -spc and -k.

 

Previous Page Next Page