首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用自定义代码签名证书来标记UWP应用程序?

使用自定义代码签名证书来标记UWP应用程序?
EN

Stack Overflow用户
提问于 2018-06-14 10:44:37
回答 1查看 0关注 0票数 0

我们的其他桌面应用程序使用signtool使用相同的证书,所以我猜这个证书没问题。其他.NET程序集(如WPF项目)使用signtool:

代码语言:javascript
复制
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" sign /f "..\..\..\..\..\Finaltec\Framework\Signing.pfx" /p ... /tr "http://timestamp.globalsign.com/scripts/timestamp.dll" "$(TargetPath)"

签署UWP应用程序是否有特殊要求,以便任何人都可以安装它?使用的证书是第3类StartSSL代码签名证书,并且有效期至2020年6月。如果我尝试使用Visual Studio生成的测试证书安装该应用程序,我收到消息说根证书不受信任,安装过程将被取消。即使我在得到相同的结果错误之前安装证书手册。

Package.appxmanifest内容:

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
  <Identity Name="f736c883-f105-4d30-a719-4bf328872f5e" Publisher="CN=CVA Computer - Visualisierung und Animation GmbH" Version="1.0.1.0" />
  <mp:PhoneIdentity PhoneProductId="f736c883-f105-4d30-a719-4bf328872f5e" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>CVA.COS_App</DisplayName>
    <PublisherDisplayName>CVA Computer - Visualisierung und Animation GmbH</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="FPCL.WIndows.App">
      <uap:VisualElements DisplayName="CVA.COS_App" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="CVA.COS_App" BackgroundColor="#f4f4f4">
        <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
        </uap:DefaultTile>
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
        <uap:InitialRotationPreference>
          <uap:Rotation Preference="portrait" />
          <uap:Rotation Preference="landscape" />
          <uap:Rotation Preference="portraitFlipped" />
          <uap:Rotation Preference="landscapeFlipped" />
        </uap:InitialRotationPreference>
      </uap:VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
    <Capability Name="privateNetworkClientServer" />
    <DeviceCapability Name="webcam" />
  </Capabilities>
</Package>
EN

回答 1

Stack Overflow用户

发布于 2018-06-14 20:07:44

在这里输入图像描述
在这里输入图像描述
在这里输入图像描述
在这里输入图像描述

它看起来像这个证书违反了我加粗的句子:

验证“增强型密钥用法”属性的值,该值必须包含代码签名,并且还可能包含生存期签名。任何其他EKU都是禁止的

下面显示了增强键CodesignaturKernelmodus-Codesignatur

截图
截图
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100004929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档