How do you install a certificate in a PFX file in to the personal container of the NT-AUTHORITY\NetworkService?

半城伤御伤魂 提交于 2019-11-30 00:47:27

问题


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?


回答1:


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.


来源:https://stackoverflow.com/questions/5695339/how-do-you-install-a-certificate-in-a-pfx-file-in-to-the-personal-container-of-t

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!