Time Stamp Client and Verifier User Manual

Ask a time stamp server for a time stamp, read everything that it answers, and check later that a time stamp really belongs to a file and was issued by a trustworthy server. This manual uses the test server https://ca.signfiles.com/tsa/get.aspx in all its examples.

Download

Time Stamp Client and Verifier can be downloaded from https://tsaserver.com/TimeStampClient.zip. This manual is also available online at https://tsaserver.com/manual/time-stamp-client/.

1. What is Time Stamp Client and Verifier?

A time stamp (RFC 3161) is a small signed answer of a time stamp server (a TSA) that proves that a document existed at a given moment. The document never leaves your computer: the program sends only its hash.

Time Stamp Client and Verifier has two tabs:

The server of this manual

The examples use https://ca.signfiles.com/tsa/get.aspx, a test server. Its certificate is named TSA Test do not use it in production: it is self-signed, so a computer does not trust it, and the time stamps that it issues are for tests only. This is why some reports in this manual contain a yellow warning about trust.

What you can do with it

2. Requirements

3. The main window

Double-click Time Stamp Client.exe. The window can be resized (its smallest size is 760 x 580 pixels) and has two tabs.

The Time Stamp Client tab after a test
The Time Stamp Client tab after a test. On the left the settings of the server and of the request, on the right the report of the answer.
AreaWhat it is for
Server SettingsThe address of the server, the login, and what the request contains.
RequestWhat is time stamped, where the answer is saved, and how many requests are sent.
Time Stamp Response InformationThe report. Green lines are correct, yellow ones are warnings, red ones are errors, black ones are information.
Run a Test, CancelSend the request(s); stop the requests that are in progress.
Copy reportCopies the report of the tab that is open to the clipboard, as text. In the verifier it also copies the verdict.
Restore DefaultsPuts back the default settings of the client (section 9).
ExitCloses the program (the settings are saved, section 9).

4. Quick start

  1. Open the Time Stamp Client tab. In Time Stamp Server URL the address is already https://ca.signfiles.com/tsa/get.aspx.
  2. Press Run a Test. The program sends a request that contains the hash of 32 random bytes.
  3. Read the report. The line PKIStatus: 0 (granted) and the line Matches the request mean that the server answered correctly.

To time stamp a file and keep the proof, see section 5.2. To check the proof later, see section 6.

5. The Time Stamp Client

5.1 Server Settings

SettingWhat it does
Time Stamp Server URLThe address of the server. Default: https://ca.signfiles.com/tsa/get.aspx. It must be a valid address, with http:// or https://.
Time Stamp Server requires authenticationCheck it when the server asks for a user name and a password. The program sends them in the Authorization header (HTTP Basic). Both fields must be filled in. The test server of this manual does not need them.
Request Policy OIDCheck it to ask for a specific policy of the server. Type the OID in the box. Leave it unchecked to let the server use its own policy. A server that does not have the policy refuses the request (unacceptedPolicy).
Include a NONCE in RequestAdds a random number to the request. The server must give it back, and the report checks it. It protects against an old answer that is sent again.
Request the TSA certificate in the response (certReq)Asks the server to put its certificate (and, when it is set to do so, the chain) in the answer. It is on by default. Without it the report cannot check the certificate of the server.
Hash AlgorithmSHA1, SHA256 (default), SHA384 or SHA512. Use SHA-256 or stronger; SHA-1 is only for old systems and many servers refuse it.
Timeout (sec)How long to wait for an answer: from 1 to 600 seconds, default 30.

5.2 Request

OptionWhat it does
Send a random Time Stamp RequestThe default. A hash of random data is sent: this tests the server and shows how it answers.
Time Stamp a fileThe program calculates the hash of the file you select with the button ... and sends it. The file stays on your computer.
Save the Time Stamp ResponseSaves the answer of the server in a file (.tsr). This is the proof that you keep with the document. It cannot be the same file as the document.
Send multiple requestsSends the number of requests that you type (from 1 to 100,000,000), with the number of Parallel requests (from 1 to 64) at the same time. See section 5.4.

Example: time stamp the file Contract.txt and save the answer as Contract.tsr:

  1. Select Time Stamp a file and choose Contract.txt.
  2. Check Save the Time Stamp Response and choose the name Contract.tsr.
    A file to time stamp and the file of the response
    The file to be time stamped and the file where the response is saved.
  3. Press Run a Test. The report starts with Response saved: ... when the file was written.
Keep the two files together

To prove later that a document existed at that time you need the document, unchanged, and its .tsr file. If a single character of the document changes, the verifier says that the time stamp is not valid (section 6).

5.3 Read the report

The report has sections. Each line starts with a mark: [ OK ] (green) the check passed, [WARN] (yellow) something to look at, [FAIL] (red) an error, and no mark for plain information.

SectionWhat it shows
HTTPThe HTTP status, the download time and the size of the answer, and the Content-Type. A correct server answers application/timestamp-reply; another type is a warning.
Response statusThe PKIStatus: 0 granted or 1 grantedWithMods are accepted; 2 rejection and the others are errors, with the text and the failure info of the server (for example badAlg, badRequest, unacceptedPolicy, timeNotAvailable). Matches the request checks that the answer is for your request: imprint, nonce, policy and algorithm.
Time stamp infoThe version, the policy, the hash algorithm, the message imprint (the hash that was time stamped), the serial number, the time (UTC and local), the difference from the clock of your PC (a warning above 60 seconds), the accuracy, the nonce and the name of the server (tsa field).
qcStatements (ETSI EN 319 422)Whether the time stamp or the certificate of the server declares itself a qualified time stamp (esi4-qtstStatement-1, eIDAS). The test server shows Not present.
Certificate chainThe certificates that the server sent, whether the chain is complete up to the root, and whether this PC trusts it (Trust (Windows store)). A warning UntrustedRoot means that the certificate of the server (or of its authority) is not installed as trusted on this PC.
Signing certificate attributeThe ESSCertIDv2 (RFC 5816, current) or the legacy ESSCertID (SHA-1, a warning) that ties the signature to the certificate of the server, and whether the hash of the certificate matches.
SignatureThe algorithm of the signature, and the result: Valid (the token was not altered). A signature made with SHA-1 is a warning. RFC 3161 token validation checks the validity of the certificate at the time of the stamp, its key usage and the ESSCertID.
TSA certificateSubject, issuer, serial number, validity period, the public key (RSA below 2048 bits or EC below 256 bits is a warning), the key usage (digitalSignature, critical) and the extended key usage (timeStamping, critical).
RevocationWhether the certificate of the server is revoked, by CRL and by OCSP (section 7).

A certificate that has expired is not an error for an old time stamp: the stamp stays valid if it was issued inside the validity period of the certificate and the certificate was not revoked. The report says so.

5.4 Many requests: measure a server

Check Send multiple requests, type the number of requests and the number of parallel requests, and press Run a Test. Press Cancel to stop.

The statistics at the end of a test with 20 requests
20 requests, 4 at a time. At the end of the report the section Statistics gives the result.
StatisticsMeaning
RequestsHow many were sent, how many were granted, how many failed or were rejected, and how many ran in parallel.
Response timeThe shortest, the average and the longest time of an answer.
Total timeThe time of the whole test.
ThroughputTime stamps per minute.
The detailed report is for one request

With many requests the detailed report is the one of the last successful request, and the revocation check is skipped, so that the test measures the server and not the servers of the revocation. Do not send a large number of requests to a server that is not yours.

6. The Time Stamp Verifier

Use this tab to check a time stamp that you already have, for example the Contract.tsr that you saved in section 5.2.

The Time Stamp Verifier tab
The Time Stamp Verifier tab before a check.
  1. Press the first ... and select the original file (Select the original file).
  2. Press the second ... and select the time stamp (Select the associated timestamp file). The program reads .tsr (a response), .tst and .p7s (a token only) and text files that contain the Base64 of either.
  3. Press Timestamp Check.

What the program checks

  1. It calculates the hash of the original file with the algorithm of the time stamp.
  2. It takes the hash that is inside the time stamp. The server signed it, so nobody can change it.
  3. It verifies the signature, the certificate of the server, the chain and the revocation (section 7).
  4. If the two hashes are the same, the time stamp is valid for that file.

The verdict

The box Timestamp Verification Result gives the verdict, then the date of the time stamp (UTC and local), the hash algorithm and the two hashes. The full report is on the right.

The file is valid:

A valid time stamp
The time stamp belongs to Contract.txt. The two warnings are the trust of the test certificate and the missing revocation information (section 7).

The file was changed after it was time stamped (here the file Contract-changed.txt, which has one more line, is checked against the same time stamp):

A time stamp that does not match the file
The hash of the file is different from the hash in the time stamp: the time stamp is not valid for this file.
VerdictMeaning
The timestamp associated with the source file is valid.
N warning(s) in the report.
The signature is correct, the hashes are the same and the certificate is not revoked. The warnings (for example UntrustedRoot) are in the report: read them.
The timestamp associated with the source file is NOT valid. The original document hash is different from the hash in the time stamp.The file is not the one that was time stamped, or it was changed. Use the exact original file.
The timestamp is altered and it is not valid.The signature of the time stamp itself is wrong: the .tsr file was changed or is damaged. The line after it gives the reason.
The timestamp associated with the source file is NOT valid. The TSA certificate is revoked, see the report.The certificate of the server was revoked (section 7).
The file does not contain a granted time stamp.The file is not a time stamp, or it is the answer of a server that refused the request (the report shows the status).

7. Revocation: is the certificate of the server still good?

A server can have its certificate revoked (for example when its key was stolen). The program looks for the address of the CRL and of the OCSP responder in the certificate of the server and asks them. It needs the certificate of the issuer; it takes it from the answer, from the address in the certificate, or from the Windows store.

Line of the reportMeaning
OCSP ...: GOODThe responder says that the certificate is not revoked (green).
CRL ...: certificate not revokedThe list does not contain the certificate (green).
... REVOKED on <date>The certificate was revoked (red). The report says whether the revocation was before or after the time stamp was issued.
The TSA certificate has no CRL Distribution Point and no OCSP responderThe certificate has no address to ask (yellow). The status is not known. This is the case of the test server of this manual.
... revocation status UNKNOWNThe list or the responder could not be reached, or the answer was not usable (yellow). Try again, or check the access of the PC to the Internet.

8. Messages and solutions

What you seeWhat to do
Validate configuration: Time Stamp Server URL is invalid ...Type a full address, for example https://ca.signfiles.com/tsa/get.aspx.
Validate configuration: Invalid credentials to log in to the Time Stamp ServerThe option requires authentication is checked but the user name or the password is empty. Fill them in or uncheck the option.
Validate configuration: The file selected to be time stamped does not exist.Select the file again with the button ....
Validate configuration: The destination file cannot be the same as the source file.Save the response with another name, for example the name of the file with .tsr.
Validate configuration: Request Policy OID is invalid ...An OID has numbers separated by dots, for example 1.3.6.1.4.1.13762.3.
The Time Stamp Server did not answer in N seconds.The server is slow or cannot be reached. Increase Timeout or check the address and the connection.
HTTP 401 / 403 ...The server refuses the login or the address. Check requires authentication, the user name and the password.
HTTP 400 ...The server did not understand the request. Check that the address is the one of a time stamp service.
PKIStatus 2 (rejection) with a failure infoThe server refused the request: badAlg (use another hash, SHA-256), unacceptedPolicy (uncheck Request Policy OID), badRequest or badDataFormat. The text of the server is in the report.
Content-Type ... (expected application/timestamp-reply)The address is not the one of a time stamp service (it may be a web page).
The data is neither a time stamp response nor a time stamp tokenThe file you selected is not a time stamp. Select the .tsr file, not the document.
Certificates in the response: NoneCheck Request the TSA certificate in the response (certReq), or set the server to include its certificate.
Trust (Windows store): UntrustedRootThis PC does not trust the certificate of the server. For a production server, install the root certificate of its authority as trusted. The test server of this manual is not meant to be trusted.
Difference from this PC clock: N sMore than 60 seconds between the server and the clock of your PC. Synchronize the clock of your PC; the time of the time stamp is the time of the server.
Weak digest: The signature uses SHA-1The server signs with SHA-1. It is accepted but it is not recommended.

9. Settings, files and security

10. Glossary

TermMeaning
TSATime Stamping Authority: the server that issues time stamps.
.tsrA time stamp response saved in a file.
ImprintThe hash of the data that is time stamped.
NonceA random number that the server must repeat in its answer.
Policy OIDThe identifier of the rules under which the server issues the time stamp.
ESSCertID / ESSCertIDv2A signed attribute that identifies the certificate of the server by its hash (SHA-1 in the legacy form, SHA-2 in v2).
qcStatementsDeclarations of a qualified time stamp (ETSI EN 319 422, eIDAS).
CRL, OCSPThe two ways to ask whether a certificate is revoked: a list and an online answer.

The program reports what a time stamp server answered and what the checks of the program found. A time stamp from a test server has no legal value. The decision whether a time stamp is acceptable for a given use belongs to you and to the rules that apply to you. The program is provided as it is.