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
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.
Argument |
Description |
---|---|
sign |
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. |
XAP |
The full path of the XAP to sign. |