Digital Signature - Advanced Installer Community
dinko.ivanov
Posts: 5
Joined: Mon Dec 30, 2019 12:36 pm

Digital Signature

Hi there,

I'm bundling an .EXE standalone installer for a client of mine. They recently bought an Extended Validation code signing certificate (https://comodosslstore.com/code-signing ... ertificate) in order to deal with the SmartScreen filter in Windows.
So I'm passing them the .exe installer and they are signing it using the provided steps (https://comodosslstore.com/code-signing ... ertificate). Upon installation however they receive an error "EXE and MSI file signature mismatch". I looked up AI forums and found relevant topic: viewtopic.php?t=34849

What I got is that I have to use the "Digital signature" page in AI to sign the .exe with any self-signed certificate. So I created one (https://babelway.zendesk.com/hc/en-us/c ... WINDOWS-10) and tried to build the installer, but I'm getting an error:

The digital signing of the MSI package failed. Error message: 'SignTool Error: No certificates were found that met all the given criteria.'
Build finished because an error was encountered.


Could you help? What is the proper way to specify a self-signed certificate in AI?

Best Regards,
Dinko
dinko.ivanov
Posts: 5
Joined: Mon Dec 30, 2019 12:36 pm

Re: Digital Signature

I figured it out. The certificate must have type - CodeSigning. That's done with Powershell via an additional parameter:

New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "mysite.local" -Type CodeSigning -FriendlyName "MySiteCert" -NotAfter (Get-Date).AddYears(10)
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Digital Signature

Hello,

Thank you for your followup on this and for sharing your solution with us.

I am sure this will be of help for further users facing a similar scenario.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”