I just installed my Extended Validation Code Signing Certificate to a Yubikey 5 device.
I call this from the Developer Command Prompt for VS 2022:
signtool sign /debug /sha1 <***> /fd SHA256 /t http://tsa.safecreative.org C:\temp\my_app.exe
I get this error:
The following certificate was selected:
Issued to: ***
Issued by: Sectigo Public Code Signing CA EV E36
Expires: Tue Sep 15 02:59:59 2026
SHA1 hash: <***>
Done Adding Additional Store
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2146435071/0x80100001)
How to fix it?
I have Windows 10 / 22H2 Windows SDK: 10.0.22621
thank you
This error can happen when you manually import the certificate into your certificate store. Instead import the certificate into the Yubikey manager. Once imported the certificate should automatically appear in the certificate store. The correct steps are posted here - https://www.sectigo.com/knowledge-base/detail/Key-Generation-and-Attestation-with-YubiKey/kA03l000000roEV
If you do not succeed start the process again using the above instructions and request a new certificate.