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. ]
Open a Command Prompt window as an administrator.
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"
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.
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.
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 is based on SignTool, and it exposes all of the features of SignTool. For more information, see SignTool.