Signtool.exe Sign returned error: 0x80090027 The parameter is incorrect.
I want to create an installer for my desktop WPF application.
I purchased a code signing certificate from Sectigo. I used openssl to get a pfx file from it, and it seems to install just fine to my pc, and certlm shows all the properties correctly.
But when I try to use it for signing my desktop apps with ClickOnce or MSIX installer, I get an error message saying
"SignTool Error: SignedCode::Sign returned error: 0x80090027
The parameter is incorrect."
Also when I try to use signtool.exe directly in signing a dummy exe, I get the same error message.
What could be the reason for the error? What are the situations where that error code and message are returned?