在构建服务器上构建可信的 Silverlight OOB 应用程序

发布于 2024-10-02 18:46:08 字数 573 浏览 0 评论 0原文

我正在尝试构建一个需要提升权限的浏览器外 Silverlight 应用程序。我遵循了这些< /a> 创建代码签名证书的说明,我在 VS2010 的属性窗格中选中了“签署 Xap 文件”框。我能够在本地计算机上构建并测试功能。当我尝试在构建服务器上使用 msbuild 进行构建时,我收到以下错误:

  • error MSB3326: Cannot import the following key file: 。密钥文件可能受密码保护。要更正此问题,请尝试再次导入证书或将证书手动导入到当前用户的个人证书存储中。
  • 错误 MSB3321:导入密钥文件“MySPC.pfx”已取消。

我已将“MyCA.cer”(自签名 CA)安装到构建服务器上的受信任的根证书颁发机构存储中,并且尝试将“MySPC.pfx”安装到同一存储和受信任的发布者存储中,但无济于事。

有人有这样做的经验吗?

I am trying to build an Out Of Browser Silverlight app with Elevated permissions required. I've followed these instructions to create a code signing certificate and I've checked the box to 'Sign the Xap File' in the properties pane in VS2010. I'm able to build and test out the functionality on my local machine. When I try to build with msbuild on the build server though, I get these errors:

  • error MSB3326: Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store.
  • error MSB3321: Importing key file "MySPC.pfx" was canceled.

I've installed the "MyCA.cer" (self signed CA) to the Trusted Root Certificate Athorities store on the build server and I have tried installing the "MySPC.pfx" the the same store and to the Trusted Publishers store to no avail.

Has anyone had any experience doing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆梦 2024-10-09 18:46:08

我最终不得不使用我们的 CA 服务器的证书来签署 .xap。这样,我们就不必在任何在浏览器外运行 silverlight 应用程序的用户计算机上安装证书。

I ended up having to sign the .xap with a certificate from our CA server. This way we don't have to install a certificate on any of the users machines that run the silverlight app out of browser.

九局 2024-10-09 18:46:08

请原谅这个明显的问题,但是您正在输入正确的证书密码,不是吗?

作为参考,我在构建服务器上安装证书时也遇到了问题,直到我也在该盒子上安装了链中的所有证书。

Excuse the obvious question but, you are entering the correct password for the certificate, aren't you?

For reference I also had an issue installing a certificate on a build server until I installed all the certificates in the chain on that box also.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文