Sean Kearon
Sean Kearon

Reputation: 11427

How do you timestamp code-signed Dotnet assemblies?

When you are using a code-signing certificate to sign your assemblies, how do you ensure that the code has a timestamp?

See here and here for more details about why you need a timestamp on a signed assembly.

Upvotes: 2

Views: 693

Answers (1)

Teoman Soygul
Teoman Soygul

Reputation: 25742

You can use the below build event to ensure that your assemblies are both signed and timestamped:

if $(ConfigurationName)==Release "$(FrameworkSDKDir)bin\signtool.exe" sign /a /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetPath)"

See the SignTool article at MSDN and have a look at the /t (timestamp) switch.

Upvotes: 2

Related Questions