I kept getting this error when calling signtool sign in the post build event of .NET project. Turns out I simply had an older version of signtool.exe and Windows Kits. After updating the Windows SDK (to version 11), it was resolved.