天天看点

Silverlight公网部署OOB时自动更新的配置

OOB公网部署时必须加上数字签名才能自动更新,目前查到的方法如下:

1,以管理员身份打开Visual Studio Tools里面的Visual Studio Command Prompt ,然后运行以下命令。 

makecert.exe -r -n "CN=wengyuli" -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

cert2spc.exe测试工具通过一个或多个 X.509 证书创建发行者证书 (SPC)。Cert2spc.exe 仅用于测试目的。可以从证书颁发机构(如 VeriSign 或 Thawte)获得有效的 SPC。 

2,对xap包进行签名

右击silverlight项目Properties>Signing>select fron file。

3,全部生成,发布WEB即可。

<a target="_blank" href="http://blog.51cto.com/attachment/201106/232728249.png"></a>

     本文转自xshf12345 51CTO博客,原文链接:http://blog.51cto.com/wengyuli/583875,如需转载请自行联系原作者

继续阅读