How to sign a company app using XapSignTool for Windows Phone
Applies to: Windows Phone 8 only
Before distributing a company app or a Company Hub app, you must sign the XAP with the enterprise certificate that you obtained from Symantec. This topic provides instructions for using the XapSignTool tool to perform this task. The XapSignTool tool is available at the following location:
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XapSignTool
In addition to the XapSignTool tool, the Windows Phone development tools also provide the BuildMDILXap.ps1 PowerShell script. This script calls the XapSignTool command-line tool, but the script provides a simpler experience. Consider using the BuildMDILXap.ps1 script rather than using the XapSignTool tool directly unless you need options available only from the XapSignTool tool. For more information, see Preparing company apps for distribution for Windows Phone.
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.