编辑Signtool“错误:SignerSign()失败。” (-2147024885/0x8007000b)
事件日志错误是这样的:
error 0x8007000B: The app manifest publisher name (CN=...)
must match the subject name of the signing certificate
(CN={19BE29DF-4812-4F2E-8FC1-A138B146946A}).
下面的命令现在似乎工作。所以当我看到这个时,无论是用户发现的错误都是我无法识别的,或者是与机器状态有关的。与事件日志消息中的签名证书关联的guid不是证书在证书管理器管理单元中显示的内容,这很奇怪。
原始的问题
我试图签署使用MakeAppx.exe
产生UWP APPX包。 pfx是用https://msdn.microsoft.com/windows/uwp/porting/desktop-to-uwp-manual-conversion中的这些命令生成的开发人员代码签名证书。
C:\> MakeCert.exe -r -h 0 -n "CN=<publisher_name>" -eku 1.3.6.1.5.5.7.3.3 -pe -sv <my.pvk> <my.cer>
C:\> pvk2pfx.exe -pvk <my.pvk> -spc <my.cer> -pfx <my.pfx>
私钥是我的受信任的根证书存储,当我使用Desktop App Converter产生APPX从安装工作。
我使用的命令行是:
signtool.exe sign -f <path to my pfx file> -fd SHA256 -v .\FishTank.appx
但SignTool
与此示数:
The following certificate was selected:
Issued to: ...
Issued by: ...
Expires: Sat Dec 31 18:59:59 2039
SHA1 hash: ...
Done Adding Additional Store
Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b)
证书出版商相匹配的是在appmanifest.xml
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
<Identity Name="..."
ProcessorArchitecture="x64"
Publisher="CN=..."
Version="1.1.0.0" />
<Properties>
<DisplayName>Fish Tank</DisplayName>
<PublisherDisplayName>Reserved</PublisherDisplayName>
<Description>Some fish. Swimming around on your screen.</Description>
<Logo>StoreLogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-us" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.14316.0" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
</Capabilities>
<Applications>
<Application Id="FishTank" Executable="FishTank.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
BackgroundColor="#464646"
DisplayName="Fish Tank"
Square150x150Logo="Square150x150Logo.png"
Square44x44Logo="Square44x44Logo.png"
Description="Some fish. Swimming around on your screen." />
</Application>
</Applications>
</Package>
此错误在文档中特别提及(https://msdn.microsoft.com/en-us/library/windows/desktop/jj835835%28v=vs.85%29.aspx)。您忘记告诉我们您在应用程序日志中找到的内容。 –
回答编辑有事件日志,但奇怪的是(离电脑几个小时之后)签名刚刚工作,没有我改变我能想到的任何东西。将它归咎于我自己的用户错误或gremlins。 – dkackman
我有相同的错误,问题出现在证书颁发者名称中。 “MakeCert.exe”中的“'值应该匹配'AppxManifest.xml'中的'Publisher =”CN = “' –
crea7or