gpt4 book ai didi

windows-store-apps - VSTS - 错误 APPX0105 : Cannot import the key file 'blah.pfx' . key 文件可能受密码保护

转载 作者:行者123 更新时间:2023-12-04 15:39:38 26 4
gpt4 key购买 nike

这是一个 VSTS 问题,不要与之前提出的类似问题混淆。此应用程序不使用强名称。
我有一个 WIN RT 遗留项目,证书已用完。
所以我有一个新的,我已经设置了密码并将其放入我的项目中。
但是,当我运行 VSTS 构建时,我收到以下错误消息。



C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets (2557, 5) C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2557,5): Error APPX0105: Cannot import the key file 'blah.pfx'. The key file may be password protected. To correct this, try to import the certificate manually into the current user's personal certificate store.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets (2557, 5) C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2557,5): Error APPX0102: A certificate with thumbprint '11F4B2DBB13F0BDACAEA79617C76279AAB394592' that is specified in the project cannot be found in the certificate store. Please specify a valid thumbprint in the project file.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets (2557, 5) C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2557,5): Error APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478.

 Process 'msbuild.exe' exited with code '1'.



我该如何解决?

编辑。我尝试运行 powershell 命令,但得到了这个响应;
enter image description here

最佳答案

从最后一个错误跟踪:

The certificate specified is not valid for signing



我希望该证书是 self-signed certificate ,在这种情况下,您可以查看 this Microsoft Documentation
使用自签名证书运行代理。

从第一个错误跟踪:

try to import the certificate manually into the current user's personal certificate store.



也有可能您没有在机器证书存储中安装证书。请引用 same link in that case .

您可以通过运行以下命令来仔细检查证书是否已正确安装:
PowerShell Invoke-WebRequest -Uri https://corp.tfs.com/tfs -UseDefaultCredentials

您还可以获得有关“在构建/发布作业中支持 Ssl 客户端证书”的有用信息 in this page

关于windows-store-apps - VSTS - 错误 APPX0105 : Cannot import the key file 'blah.pfx' . key 文件可能受密码保护,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49433652/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com