How to sign a company app using XapSignTool for Windows Phone

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

To sign the XAP by using the XapSignTool tool

  1. Open a Command Prompt window as an administrator.

  2. Optionally, run the following command to ensure that the path environment variable is configured correctly for XapSignTool. Otherwise, you must specify the full path for XapSignTool when you run it on the command line in the following step.

    set path=%path%;"%ProgramFiles(x86)%\Microsoft SDKs\Windows Phone\v8.0\Tools\XapSignTool"
  3. Run XapSignTool with the following command line. Be sure to replace the placeholder text in this command with appropriate values.

    XapSignTool.exe sign /f PFXFile /p Password XAP

    The following table describes these command-line arguments for XapSignTool.




Signs the specified XAP file.

/f PFXFile

Specifies the name of the PFX file generated from the enterprise mobile code signing certificate provided by Symantec. If the PFX file is not in the current path, specify the full path to the file.

/p Password

The password used to read the PFX file.


The full path of the XAP to sign.

XapSignTool provides many other commands in addition to the ones described here. For more information about the command line arguments for XapSignTool, run the following command.

    XapSignTool /?

XapSignTool is based on SignTool, and it exposes all of the features of SignTool. For more information, see [SignTool](\(v=vs.85\).aspx).

See Also

Other Resources

Company app distribution for Windows Phone