我尝试使用 SignTool 和 kSign 签署我的 exe 已经整整两天了。我从 COMODO 为我的域购买了 SSL 证书(用于 apache 上的 https)。现在我正在尝试使用相同的证书和使用的相同私钥签署我的 exe。我正在使用以下命令:
openssl pkcs12 -inkey example.com.key -in example.com.crt -export -out example.com.pfx
并试图签名
signtool /f example.com.pfx /p mypassword myexe.exe
我总是得到:“SignTool 错误:没有找到符合所有给定条件的证书。”
无论我发现从 Internet 生成 PFX 文件的任何方法,它总是相同的错误消息。我什至尝试用 kSign 签名,我得到了同样的结果。我错过了什么?我可以使用为我的网络服务器购买的 SSL 证书来签署我的 exe 文件吗?
谢谢。