Signtool.exe Sign returned error: 0x80090027 The parameter is incorrect.

Markus 16 Reputation points
2022-11-30T16:24:29.2+00:00

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?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,647 questions
{count} votes