SignTool Error: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
问题:
当我试图验证我签名的代码,SignTool报告以下错误:
SignTool Error: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
解答:
This is because of the "verify" command you may have run: signtool verify myfile.exe. If you run this command, signtool will use the Windows Driver Verification Policy. In order for your file to "verify" properly you need to include the /pa switch, so that SignTool uses the Default Authentication Verification Policy.