Partager via


Signfile.exe

Signfile.exe signs an executable with a supplied private key.

You can use the following command-line parameters with this tool.

signfile [ parameters ]

Parameters

  • -fPEFile
    Specifies the file to be signed.
  • -a
    Appends signature to PE File.
  • -kKeyName
    Uses a private key from the named CryptoAPI key container.
  • -oCfile
    Outputs the public key to a file as a C structure.
  • -sAttribString
    Specifies an optional attribute string to be included in signature. For example, you can add a string to indicate the trust level of the application.
  • -pSignFile
    Outputs the signature to a file.

The following command-line example shows how to sign Xyz.dll using the private key in key container TESTKEY1024.

Signfile -fXyz.dll -a -kTESTKEY1024

For more information about this tool, see Creating a Signature.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.