Signing a XAP File By Using a Certificate

By signing a XAP (.xap) file for a LightSwitch application, you assure users that the publisher is reliable and the code has not been tampered with.

LightSwitch applications are downloaded as XAP files. A XAP files is a compressed file that contains an assembly manifest and one or more assemblies. A XAP file is signed by using a public key certificate (typically referred to just as a certificate), which is a digitally signed statement that binds the value of a public key to the value of a private key that is held by a person, device, or service. A certificate is typically obtained from a system administrator.

A signed XAP file is required for an application that is hosted on Windows Azure.

To sign a XAP file for your LightSwitch application, on the Specify a certificate page of the LightSwitch Publish Application Wizard, assign a certificate. Certificates can be added from the certificate store on your computer or from a network location that is provided by the network administrator. You can also create a temporary certificate for testing.

Note

When you deploy an application to users, do not use a test certificate because it is only valid for a short period of time.

Adding a Certificate in the Publish Application Wizard

To add a certificate from your computer

  1. In the LightSwitch Publish Application Wizard, on the Specify a Certificate page, click Select a certificate from this computer’s store.

  2. In the Windows Security dialog box, select the certificate that you want to use and then click OK.

    Basic information about the certificate is displayed. You can click More Details to see more information about the certificate.

To add a certificate from another location

  1. In the LightSwitch Publish Application Wizard, on the Specify a Certificate page, click Browse for a certificate.

  2. In the Select File dialog box, browse to the location of the certificate that you want to use, and then click OK.

    Basic information about the certificate is displayed. You can click More Details to see more information about the certificate.

To create a test certificate

  1. In the LightSwitch Publish Application Wizard, on the Specify a Certificate page, click Create a Test Certificate.

    A password dialog box appears.

  2. Type a password for the new certificate, confirm it, and then click OK.

    Basic information about the certificate is displayed. You can click More Details to see more information about the certificate.

See Also

Other Resources

How to: Deploy a 3-tier Application

How to: Host an Application on Windows Azure