跳至主要内容

為什麼使用微軟 signtool 工具的 verify 命令驗證簽章後的程式會回傳錯誤?

SignTool Error: A certificate chain processed, 
but terminated in a rootcertificate which is not trusted by the trust provider.
Number of errors: 1

由於您選購的是一般程式碼簽章憑證,並非 EV 憑證,而微軟 SignTool 的 verify 指令預設會採用驅動程式簽章驗證模式(需使用 EV 憑證),因此直接執行 Verify 會驗證失敗,必須加上 /pa 參數。

微軟相關文件說明請參考: 微軟相關文件

命令範例:signtool verify /v /pa datestrl.exe