rkulp
Posts: 48
Joined: Mon Feb 26, 2007 10:50 pm

How to use /tr switch in signtool.exe

I am using version 7.7 on a Windows 7 computer. I installed Capicom and the security update so the program compiles and signs the .exe but fails on the timestamp with the error:

Signing MSI... error.
Exception - Reason: The digital signing of the MSI package failed. Error Message:Done Adding Additional Store

Number of files successfully Signed: 1
Number of warnings: 1
SignTool Error: The specified timestamp server either could not be reached
or returned an invalid response.
This may happen if you specify an RFC 3161 timestamp URL but used
the /t option or you specified a legacy Authenticode timestamp URL
but used the /tr option.
SignTool Warning: Signing succeeded, but an error occurred while attempting to
timestamp: D:\VisualStudio2005\Projects\SK6Reports\AI Package\SK6Reports.msi

Build finished because an error was encountered.

Here is the instruction from my certificate vendor:

"The time-stamping server is available at the address http://www.startssl.com/timestamp. The URL should not be accessed through the browser, but with a signing tool. This is a RFC 3161 compliant server, please use the /tr switch with signtool.exe."

I can't find any documentation on how to do this during package build. Does anyone have a solution?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to use /tr switch in signtool.exe

Hello,

Can you set the related URL in the "Time Stamp URL" field from "Digital Signature" page and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rkulp
Posts: 48
Joined: Mon Feb 26, 2007 10:50 pm

Re: How to use /tr switch in signtool.exe

I set the URL in the digital signing page and encountered this error. There seems to be no way to set the parameter. Is it defaulted to /tr ?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to use /tr switch in signtool.exe

Hello,

Indeed, I'm afraid this is the default behavior. Advanced Installer use by default the /tr parameter when call SignTool.exe. As a workaround you can create a custom EXE file (MyExeFile.exe) which will run SignTool.exe with /t parameter, and then set the above custom EXE filepath in the "Options -> External Tools -> SignTool.exe" field.

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

Return to “Common Problems”