509 证书的私钥最终出现在我的用户帐户中,而不是所有用户中
我在 WCF 服务的服务器计算机上安装了证书。它安装在证书管理器的本地计算机区域中。但是,当我运行该服务时,它说找不到私钥文件。当我找到私钥时,它位于我的用户帐户区域中。对于要运行的 WCF(它正在运行 HTTP),我的理解是它必须在“所有用户”区域中拥有私钥才能获得权限。如何安装证书以使私钥位于所有用户区域而不是我的登录用户名区域? makecert 命令似乎没有对此进行任何设置。
I installed a certificate on the server machine for a WCF service. It installed in the Local Computer area of the Certificates Manager. However, when I run the service it says it can't find the Private Key file. When I locate the Private Key, it is in my user account area. For the WCF to run (it is running HTTP), it is my understanding that it has to have the private key in the All Users area for permissions. How can I install the certificate to have the private key in the All Users area instead of my login username area? The makecert command does not seem to have any setting for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该将证书安装到服务帐户或计算机帐户。您可以通过将证书管理单元添加到管理控制台来完成此操作:
您现在应该能够通过右键单击树并选择“所有任务”->“导入证书”进口。
You should install the certificate to the Service Account or the Machine Account. You can do this by adding a Certificate snap-in to the management console:
You should now be able to import the certificate by right clicking on the tree and selecting All Tasks -> Import.