code signing - SignTool Error: ISignedCode::Sign returned error: 0x80092006 -


I am signing an EXE program with a certificate issued by a trusted CA. I am using signtool.exe from Windows SDK v6.0a.

The certificate is located in the computer store and it is in the "Personal" folder.

My command line is:

  sign / sm / n "My company" / d MyProductName / du http://my.url.com "C: \ Setup \ Setup.exe " 

When I run this command on the command line, it works fine. When I get this command a batch process (called by a webservice, when a command is executed, then no user is logged in) The following error occurs:

Number of Errors: 1 SignTool Error: ISignedCode :: Returned Error: 0x80092006 No provider was specified for the store or the object.

Anyone can help on this?

The problem is that your service process can not use your private key, which is your account Gets accumulated in

Log in to that account to run the web service and importing the private key into a main container, for example you can use it:

  sn -i MyCertificate .pfx MyCodeSigningKey  

Now, to use this key container, change your build script:

  signtool sign / sm / a / v / csp " Microsoft Strong Cryptographic Provider "/ Casey MyCodeSigningKey & lt; Other parameters ... & gt;  

/ case specifies the key container / Case requires that you switch to / csp Specify "CSP" (cryptographic service provider) through "Microsoft Strong Cryptographic Provider", sn .

is the default provider used.

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -