SignedCode.Timestamp method

[The Timestamp method is available for use in the operating systems specified in the Requirements section. Instead, use Platform Invocation Services (PInvoke) to call the Win32 API SignerSignEx, SignerTimeStampEx, and WinVerifyTrust functions to sign content with an Authenticode digital signature. For information about PInvoke, see Platform Invoke Tutorial. The .NET and CryptoAPI via P/Invoke: Part 1 and .NET and CryptoAPI via P/Invoke: Part 2 subsections of Extending .NET Cryptography with CAPICOM and P/Invoke may also be helpful.]

The Timestamp method creates an Authenticode time stamp signature on the signed executable file specified in the SignedCode.FileName property. This time stamp is a counter signature on the signed executable file that is performed by a time stamp authority.

Syntax

SignedCode.Timestamp( _
  ByVal URL _
)

Parameters

URL [in]

A string that contains the URL of the time stamp server.

Return value

This method does not return a value.

Remarks

A time stamp extends the validity of a certificate by verifying that the executable file was signed at the time that it was time stamped.

Before this method can be called, the signed executable file to be time stamped must be specified in the SignedCode.FileName property, and the SignedCode.Sign method must be called to sign the executable file.

If the signed executable file is already time stamped, this method overwrites the existing time stamp.

Requirements

Requirement Value
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

SignedCode