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.