如何在PFX文件中将证书安装到NT-AUTHORITY \NetworkService的个人容器中? [英] How do you install a certificate in a PFX file in to the personal container of the NT-AUTHORITY\NetworkService?

查看:294
本文介绍了如何在PFX文件中将证书安装到NT-AUTHORITY \NetworkService的个人容器中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.PXF文件用于强烈命名我们的几个.NET程序集。 VS2010 / MSBUILD似乎期望这是在运行VS2010 / MSBUILD的用户帐户的个人容器。当在交互式用户帐户中工作时,这是很好的,而且当在构建代理上通过TFS 2010进行自动构建时,构建代理使用的帐户(默认情况下)是NT-AUTHORITY / NetworkService。



因为我不能登录一个interacive会话作为NetworkService我不能只是从交互式会话shell安装PFX。



任何人都可以告诉我如何在NetworkService帐户的个人证书存储中安装PFX证书?

解决方案

回答感谢 Richard 来自serverfault

您需要打开网络服务证书存储并添加。



要打开存储:




  • 从开始|运行: mmc.exe


  • 当提示输入帐户类型时,请选择服务帐户

  • 根据需要选择本地/远程计算机

  • 选择作为网络服务运行的任何服务
    (默认情况下作为网络服务运行的远程过程调用(RPC))

  • 完成向导和确定以关闭添加/删除对话框。

  • 在适用的catrgory上,右键单击并选择添加任务以查找导入等操作。


I have a .PXF file used to strongly name several of our .NET assemblies. VS2010/MSBUILD seems to expect this to be in the personal container for the user account running VS2010/MSBUILD. This is all just fine and dandy when working in an interactive user account, but when atempting an automated build via TFS 2010 on the build agent the account used by the build agent (by default) is NT-AUTHORITY/NetworkService.

Since I cannot log in an interacive session as NetworkService I cant just install the PFX from an interactive sessions shell.

So can anyone tell me how I install a PFX certificate in the personal cert store of the NetworkService account?

解决方案

Answer Courtesey of Richard Reposed from serverfault

You need to open the Network Service certificate store, and add it.

To open the store:

  • From Start | Run: mmc.exe
  • File | Add/Remove Snapins and select Certificates then Add.
  • When prompted for the type of account select Service Account
  • Select local/remote computer as required
  • Select any service that's running as Network Service ("Remote Procedure Call (RPC)" run as Network Service by default)
  • Finish the wizard and OK to close the add/remove dialog.
  • On the applicable catrgory right click and select add tasks to find the import etc. operations.

这篇关于如何在PFX文件中将证书安装到NT-AUTHORITY \NetworkService的个人容器中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆