Digitally sign the Silverlight xap package

Source: Internet
Author: User
Tags microsoft website

1. Under what circumstances do I need a signature?

There are security restrictions when the Silverlight OOB mode runs with the highest permissions. If you want to installProgramAutomatic Upgrade requires that the xap package has been digitally signed. Otherwise, you can only manually delete the file and reinstall it to perform the upgrade.

2. How to sign

The pfx Digital Certificate file is required to sign the xap package.

3. How to Create a pfx Certificate file

Punch in the Visual Studio command prompt in Visual Studio Tools, and then run the following command.
Makecert.exe-r-n "cn = chuifeng"-B 01/01/2009-e 12/31/2019-SV C: \ demo \ cbipsetupkey. PVK c: \ demo \ cbipsetupkey. Cer

Cert2spc.exe c: \ demo \ cbipsetupkey. Cer c: \ demo \ cbipsetupkey. SPC

Pvkimprt-pfx c: \ demo \ cbipsetupkey. SPC c: \ demo \ cbipsetupkey. PVK

Note: pvkimprt.exe is a certificate export tool. Download from Microsoft Website: elastic.

The cert2spc.exe test tool creates a issuer certificate (SPC) through one or more X.509 certificates ). Cert2spc.exe is only used for testing purposes. A valid SPC can be obtained from a Certificate Authority (such as Verisign or thawte.
4. Sign the xap package

Right-click the Silverlight Project Properties> signing> select fron file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.