Re: CryptUI Digital Sign Problem



Hi,

Today I found a new company (Averina Software) supporting Authenticode. They
have a new code signing library and it is free for non-commercial use.
(available for both native and managed environments) You might give it a
try. http://www.averina.com

Regards...

<tim.murison@xxxxxxxxxxxxx> wrote in message
news:1175623634.352150.274770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I'm using the CryptUIWizDigitalSign function with the GUI disabled to
try and add an authenticode signature to a file.

The function always returns an error: "A certificate chain could not
be built to a trusted root authority." I get the same error message
when verifying a correctly signed file using WinVerifyTrust if I
specify DRIVER_ACTION_VERIFY instead of
WINTRUST_ACTION_GENERIC_VERIFY_V2 as the pgActionId. Finally, signtool
also gives the error unless I specify the /pa option. I would like to
know how I can switch CryptUIWizDigitalSign over to the wintrust
action.

I have tried using SignerSign but it results in a different error, and
has no real documentation.

Cheers,

-Tim



.