部署完全信任的wpf浏览器应用程序(XBAP)
我正在构建一个需要在完全信任的环境中运行的 XBAP 应用程序。因此,当在浏览器上使用它时,最终用户必须安装我的 .pfx 文件(以证明我的应用程序),否则会收到著名的“未授予信任”错误。这造成不便。
因此,我希望最终用户每次访问我的 xbap 应用程序时,都会要求用户安装 .pfx 文件,然后自动安装 .pfx 文件。
我怎样才能做到这一点? (使用VS2008、.net 3.5)
I am building a XBAP application which required to run in a full trust environment. Thus, when using it on browser, the end-user have to install my .pfx file (to certificate my application) or receives the famous "Trust not granted" error. That make a inconvenience.
So, I want that everytime the end-user access my xbap application, it would asks the user to install the .pfx file and then auto-install the .pfx file.
How can I do that? (using VS2008, .net 3.5)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下链接提供了有关如何编写简单的可执行文件以在客户端计算机上安装证书的详细信息。然后,您可以从网页链接到此可执行文件。然后,客户端只需运行此可执行文件即可安装您的证书。
自动安装 XBAP 应用程序的证书
I'我认为你可以更狡猾地编写一个执行类似操作的 Active-X 控件。这样,active-x 控件将在客户端第一次访问您的网站时自动提示安装。
The following link provides details on how you could code up a simple executable to install your certificate on the client's machine. You could then link to this executable from your web page. The client could then simply run this executable to install your certificate.
Automate Certificate Install for XBAP Applications
I'm thinking you could be even trickier and code up an active-x control that did something similar. This way the active-x control would automatically prompt the client to install the first time they visit your website.
将自己设置为受信任的发布者,这意味着用户需要将证书安装到“受信任的发布者”中。请访问 http://msdn.microsoft.com/en-us 查看更多详细信息/library/01daf08f.aspx
Make yourself as a trusted publisher, which means user needs install the certificate into "trusted publisher". check out more details at http://msdn.microsoft.com/en-us/library/01daf08f.aspx
这里有一个解决方案=D
XBAP 完全信任部署
创建您自己的证书并部署完全信任。之后,用户会针对我的情况自动安装=D 也可以提示安装或通知用户单击地址栏旁边的按钮^^
额外信息,您可能会注意到您的主机是否支持完全信任= D
there is a solution here =D
XBAP full trust deployment
create your own certificate and deploy full trust.afterward, user install automatically for my case =D also can prompt to install or notify user click the button beside the address bar ^^
extra information, you may notice whether do your host support full trust =D