问题描述
我一直在研究这个问题,虽然我找到了一些解决方案",但似乎很多解决方案"都被偶然发现或无法充分解释什么是真正有效的.
I've been looking around on this problem and whilst I've found a few "solutions" it seems that a lot of these "solutions" are stumbled upon or cannot adequtely explain what really worked.
我尝试了许多解决方案,但仍然遇到问题.
I've tried a number of the solutions but I'm still having issues.
我已经在Visual Studio中创建了一个.PFX. TeamCity和Build Agent都在我的本地开发计算机上,因此我的情况中没有其他PC.
I've created a .PFX within Visual Studio. TeamCity and the Build Agent are all on my local development machine so there isn't any other PC involved in my situation.
TeamCity尝试构建此项目时,出现错误:
When TeamCity tries to build this project I get an error:
Team City Server和TeamCity Build Agent都在Local System Account
下运行.
Everything is running under Local System Account
both Team City Server and the TeamCity Build Agent.
那么我在哪里安装证书?我已经打开MMC.exe并将其导入到许多明显的地方",例如Local Computer
证书管理单元.我尝试将其导入到Personal
和Trusted CA roots
中,但都不起作用.
So where do I install the certificate? I've opened MMC.exe and imported it into a number of "obvious places" such as the Local Computer
Certificate Snap-In. I tried importing it into the Personal
and Trusted CA roots
but neither of those worked.
那么,你把它放在哪里?
So where on earth do you put it?
推荐答案
我的解决方案是创建一个新的用户帐户,然后在该用户帐户下导入pfx文件.然后在计算机上配置TeamCity构建代理以使用该用户作为其登录名.有关更改构建代理使用的凭据的更多步骤,请参见
My solution to this was to create a new user account and import the pfx file under that user account. Then configure the TeamCity build agent on the machine to use that user as it's logon. For more steps on changing the credentials the build agent uses, see this post
这篇关于TeamCity LocalService PFX程序集签名-证书安装位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!