以前,我会将 yubikey 插入 USB 端口,然后从 powershell 中使用相关选项运行 ./signtools.exe。然后系统会提示我输入 PIN 码。
我尝试在我的新计算机上执行此操作,但现在出现错误
"SignTool Error: No certificates were found that met all the given criteria."
我已经安装了 Yubikey 管理器,证书位于 PIV 下,未过期。
如果您在使用signtool时遇到困难,可以尝试支持Yubikeys的Jsign。
jsign --storetype YUBIKEY --storepass 123456 --certfile full-chain.pem application.exe
如果证书或密钥有问题,它应该显示一条有意义的错误消息。
(免责声明:我是这个项目的作者)