在开发人员计算机上在证书存储区中安装威瑞信证书的问题

问题描述:

我有一个最初在Visual Studio 2008中创建的Visual Studio 2010 VSTO Outlook添加项目.VSTO dll项目使用VeriSign证书(Pfx文件)签名。当这个项目是在VS 2008下创建的时候,在新的开发者机器上构建它没有任何问题。现在,VS 2010下,我们得到下面的生成错误:在开发人员计算机上在证书存储区中安装威瑞信证书的问题

"Cannot import the following key file: Blah.pfx. The key file may be password protected. To corrrect 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_blahblahblahblah"

有一段时间,我能够用SN.EXE -i将证书手动安装到强名称CSP,作为错误提示,一切都很好。现在,我得到以下神秘的错误消息,当我尝试使用SN.EXE -i来安装证书:

"Failed to parse the PKCS#12 blob in blah.pfx -- An internal error occurred"

有谁知道是什么原因导致这种故障,以及如何解决它?我见过一些关于在Microsoft/Crypto/RSA下的MachineKeys文件夹设置权限的帖子,我试过了,但仍然得到相同的错误信息。

我最终为此问题打开了Microsoft Premier支持事件,结果证明我们的证书已损坏。解决方案是用新的证书替换它。