小编dfr*_*ank的帖子

由于私钥过滤器,signtool.exe 有时无法使用证书

在我们的构建服务器上,我们使用 signtool.exe 对我们的工件进行签名。

每次都将相同的参数传递给 signtool.exe,但由于“私钥过滤器”而未使用我们的证书,因此它偶尔会失败或通过。

我们已经使用这个流程一段时间了,但我们在 2019 年 3 月 27 日早上开始看到失败。

我们使用以下参数启动 signtool.exe 进程: sign /fd sha256 /f "cert.p12" /p certPass /du hostSiteHere /v /debug /tr timeStampUrl "fileNames"

规格 - signtool.exe 来自 windows 10 sdk - 构建服务器作为 windows 2016 服务器 ec2 实例托管在 AWS 中 - jenkins (v2.1.68) 使用亚马逊 ec2 插件 (v1.42) 运行构建

日志,取决于它是通过还是失败:

  • 经过
The following certificates were considered:
    Issued to: myCompany, Inc.
    Issued by: DigiCert SHA2 Assured ID Code Signing CA
    Expires:   Wed Oct 30 12:00:00 2019
    SHA1 …
Run Code Online (Sandbox Code Playgroud)

certificate amazon-ec2 signtool jenkins

5
推荐指数
0
解决办法
577
查看次数

标签 统计

amazon-ec2 ×1

certificate ×1

jenkins ×1

signtool ×1