TeamCity LocalService PFX程序集签名-证书安装位置 [英] TeamCity LocalService PFX Assembly Signing - Where to Install the Certificate

查看:99
本文介绍了TeamCity LocalService PFX程序集签名-证书安装位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究这个问题,虽然我找到了一些解决方案",但似乎很多解决方案"都被偶然发现或无法充分解释什么是真正有效的.

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:

错误MSB3325:无法导入以下密钥文件:name.pfx.钥匙 文件可能受密码保护.若要更正此问题,请尝试导入 再次证书或将证书手动安装到Strong 使用以下密钥容器名称来命名CSP: VS_KEY_6E76201C7E991E97

error MSB3325: Cannot import the following key file: name.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_6E76201C7E991E97

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证书管理单元.我尝试将其导入到PersonalTrusted 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程序集签名-证书安装位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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