Tushar
Posts: 16
Joined: Thu Sep 28, 2017 1:48 pm

Digital Signing Not working with External SignTool from Microsoft SDK

Hi,

I am using digicert code signing certificate with Microsofts SDK signing tool.

I had downloaded MS SDK for my Windows 10 OS. The system is 64 bit but the SDK is 32 bit.

The path is: C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\SignTool.exe

here is the detailed message:

The digital signing of the APPDIR\iMedXExpressEditor.exe file failed. Error message: 'Error information: "Error: Store::ImportCertObject() failed." (-2146885630/0x80092002)
SignTool Error: An unexpected internal error has occurred.'

Advanced Installer 14.8 build 281f49a4fb
*** Stack Trace (x86) ***

[0x743bd8a8] RaiseException()
[0x01c1a412] -----
[0x00a1847a] -----
[0x00a15ac7] -----
[0x00a157d6] -----
[0x00c11254] -----
[0x00b48f50] -----
[0x007c85de] -----
[0x007c85e6] -----
[0x0070d543] -----
[0x0071673c] -----
[0x013d05c0] -----
[0x00e689c1] -----
[0x771c5663] RtlUnicodeStringToInteger()
[0x771c562e] RtlUnicodeStringToInteger()
[0x00350000] MODULE_BASE_ADDRESS

[img]
issues.png
issues.png (12.76 KiB) Viewed 6156 times
[/img]
Tushar
Posts: 16
Joined: Thu Sep 28, 2017 1:48 pm

Re: Digital Signing Not working with External SignTool from Microsoft SDK

More information about the issue:

If I use digisign.exe then it is still not able to sign the files.

The digital signing of the APPDIR\iMedXExpressEditor.exe file failed. Error message: 'digisign.exe error. System error code: 2148081666. Error message: An error occurred during encode or decode operation.

Code: Select all

digisign.exe sign /f E:\Documents\DigiCertFiles\iMedXInc.p12 /p xxxxxxxx /d iMedXExpressEditor /fd SHA256 /tr http://timestamp.digicert.com /td sha256 '

Advanced Installer 14.8 build 281f49a4fb
*** Stack Trace (x86) ***

[0x743bd8a8]  RaiseException()
[0x022da412]  -----
[0x010d847a]  -----
[0x010d5ac7]  -----
[0x010d57d6]  -----
[0x012d1254]  -----
[0x01208f50]  -----
[0x00e885de]  -----
[0x00e885e6]  -----
[0x00dcd543]  -----
[0x00dd673c]  -----
[0x01a905c0]  -----
[0x015289c1]  -----
[0x771c5663]  RtlUnicodeStringToInteger()
[0x771c562e]  RtlUnicodeStringToInteger()
[0x00a10000]  MODULE_BASE_ADDRESS
Tushar
Posts: 16
Joined: Thu Sep 28, 2017 1:48 pm

Re: Digital Signing Not working with External SignTool from Microsoft SDK

This has been resolved.

This was a problem with my certificate.

Thanks much.

I am putting my problem and resolution here it might be helpful for others:

I have Microsoft Authenticode digicert certificate. I installed it using FireFox and exported it as .p12 file.
running with signtool also gave me the same issue.
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "path to certificate file\Certificate.p12" /p xxxxxxx "path to.exe" SignTool Error: An unexpected internal error has occurred.
Error information: "Error: Store::ImportCertObject() failed." (-2146885630/0x80092002)

I used the digicert certificate utility to reexport the certificate as .pfx and that resolved the issue.

-Delete the existing certificate from the utility.
-import the .p12 file.
-export the certificate as .pfx with password.

configure .pfx file with password with Advanced installer.

Thanks much.
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Digital Signing Not working with External SignTool from Microsoft SDK

Hello,

First of all I'm glad you got this working.

Also, thank you for sharing this with us, I'm sure it will help further users with a similar situation.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”