如何使用 Azure 可信签名来签署 Word 模板 (.dot)

问题描述 投票:0回答:1

我已遵循文档并获得了可信签名来处理 .exe 和 MSI 文件。 我现在要解析最后一种文件类型,即 Word 模板 .dot 文件。

我有一个使用正在运行的本地证书对模板进行签名的脚本,并且我已更改该脚本以添加 Azure.CodeSigning.Dlib.dll /dlib。该命令运行并显示:

Trusted Signing

Version: 1.0.53

"Metadata": {
  "Endpoint": "https://weu.codesigning.azure.net/",
  "CodeSigningAccountName": "blahblah",
  "CertificateProfileName": "Moreblahblah",
  "ExcludeCredentials": [
    "VisualStudioCredential",
    "VisualStudioCodeCredential",
    "AzurePowerShellCredential",
    "InteractiveBrowserCredential"
  ]
}
Submitting digest for signing...
OperationId 1e21810d-2518-4598-918e-7eeb90d2b4e1: InProgress
Signing completed with status 'Succeeded' in 6.4137774s

但是signtool返回C0000005并且文档未签名。

“C:\Program Files (x86)\Windows Kits in .0.22621.0\x86\signtool.exe”符号 /v /debug /fd SHA256 /tr “http://timestamp.acs.microsoft.com " /td SHA256 /dlib "C: ools\signinglib\microsoft.trusted.signing.client .0.53 in\x86\Azure.CodeSigning.Dlib.dll" /dmdf "C:\sign-office\signing-metadata。 json" "C:\Template.dot"

trusted-signing
1个回答
0
投票

可信签名不支持 .dot 文件签名。可信签名支持 SignTool 支持的文件类型:https://learn.microsoft.com/en-us/windows/win32/seccrypto/cryptography-tools

© www.soinside.com 2019 - 2024. All rights reserved.