Timespamp not working though authenticated proxy - Advanced Installer Community
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Timespamp not working though authenticated proxy

I am having problem to sign files with timestamp when using a authenticated proxy.
There is a way to inform proxy authentication information to signtool?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Timespamp not working though authenticated proxy

Hello,

I’m afraid this is a limitation of SignTool because of the limitation of the API. SignTool will connect to the remote timestamp server in a very simple way, without using any proxy info or user credentials. And this is not configurable in any way.

For details, please check the How to timestamp Authenticode signatures when our proxy requires authentication article.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Re: Timespamp not working though authenticated proxy

Using program SignCode.exe (https://msdn.microsoft.com/pt-br/librar ... s.80).aspx) it works fine. Why SignTool doesn't?
There is a possibility to create my own executable to use SignTool to sign files and SignCode to Timestamp?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Timespamp not working though authenticated proxy

Hello,
Why SignTool doesn't?
As I saw in the related article, there is limitation in the API that is used.
There is a possibility to create my own executable to use SignTool to sign files and SignCode to Timestamp?
I'm not sure if this will work, but you can try. However, is there any reason why you don't use the SignCode to both sign and timestamp the installer?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Re: Timespamp not working though authenticated proxy

I tried to use CodeSign in AI but it does not work.
But anyway, CodeSign looks like is not possible to pass password through parameters. It has to be typed every time!
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Re: Timespamp not working though authenticated proxy

I tried to use SignTool.exe directly, from command line, and it is working fine. It doesn't works only from AI.
There is a way to get more log info from AI build process?

I created a console program that receive the AI sign command and than executes the sign and timestamp using SignTool.exe.
It is signing and making the timestamp very well through the authenticated proxy. But AI stared to show this error:
Could not extract digital certificate from [C:\Repositories\Sitrad Pro\Sitrad 5\branches\Sitrad 5.1.X\solution\Installers\SitradProInstaller-cache\part5\disk1.cab].
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Re: Timespamp not working though authenticated proxy

There are any answer to me?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Timespamp not working though authenticated proxy

Hello,

We apologize for our delayed answer. Somehow this thread was overlooked.

It is very strange that the signing works when you are using your own console program, in our External Tools settings, that calls the SignTool.exe. Can you please make sure that you are referencing in the "SignTool.exe" field the same SignTool.exe file you are calling from your console program and that the "Use an external tool" option is checked and try again?

Also, can you please add your proxy server info in Internet Explorer browser proxy settings and test again the build scenario and let us know if this helped? Just open IE, go to "Tool" menu option -> "Internet Options" -> "Connections" tab -> "[LAN Settings]", check the "Use a proxy server for your LAN" option and add your proxy server address.

If this is still of no help to you, please send us the AIP (project file) and a download link to its built setup package to support at advancedinstaller dot com so we can further investigate this. To build the setup please disable the build operation from the "Digital Signature" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”