Anycert Trust Services

.tsr, .tsd, .m7m and .p7m: time stamp and signature formats explained

What each format contains, which standard defines it and when to choose it: separate time stamp (.tsr), single files (.tsd, .m7m), signed files (.p7m) and time stamps inside a PDF.

Updated on

A .tsr is a separate time stamp, to be kept next to the original file. A .tsd and an .m7m are single files that hold document and time stamp together: .tsd is the international standard (RFC 5544), .m7m a format used mainly in Italy. A .p7m is not a time stamp at all: it is an electronically signed file, which can in turn be time-stamped.

The formats at a glance

ExtensionWhat it isContains the document?StandardWhen to choose it
.tsrTime-stamp responseNo, only its fingerprintRFC 3161Always: it is what the provider issues
.tstThe time-stamp token alone, without the response statusNoRFC 3161Produced by some programs; equivalent to the .tsr for checking
.tsdTimeStampedData envelope: document and time stamp togetherYesRFC 5544 (media type in RFC 5955)To send or archive document and time stamp in one file, in any country
.m7mMIME message with the document and the .tsrYesItalian practice, not an international standardFor recipients in Italy whose signature software expects it
.p7mElectronically signed document (CAdES envelope)YesCAdES signatureNot a time stamp: it shows who signed. It can be time-stamped like any other file
PDF with an embedded time stamp (PAdES)Time stamp stored inside the PDFYes, it is the PDF itselfPAdESWhen an authority or platform explicitly asks for a time-stamped PDF

.tsr: the separate time stamp

The .tsr is the standard response a provider returns when you send it a file's fingerprint (RFC 3161, updated by RFC 5816 to allow stronger certificate identifiers such as SHA-256). It weighs a few kilobytes and contains, among other things, the fingerprint, the date and time in UTC, the serial number and the provider's signature.

On its own a .tsr is of little use: it says that a file with that fingerprint existed at that date, but to know which one you need the original file. Keep the two together, as explained in how to open a .tsr file.

.tsd: the international standard

The .tsd (TimeStampedData) is defined by RFC 5544: an envelope containing the document, optionally its name, and one or more time stamps. RFC 5955 registers its media type, application/timestamped-data. It is designed to keep document and time stamp in the same file and to add new time stamps over time, so that the proof can be extended.

.m7m: the Italian format

The .m7m is a MIME message, the same structure as an email with attachments, with two parts: the document (which may itself be a signed .p7m) and its .tsr time stamp. It is widespread in Italy because Italian signature software produces it. It is not defined by an international standard, though: not every program, especially outside Italy, opens it. If your recipient is not in Italy, prefer .tsd.

.p7m: a signature, not a time stamp

A .p7m is an electronically signed document: the envelope contains the document and the signature of the person who signed it. The signature shows who signed; the date the signing software writes into it comes from the signer's own computer, so it is not independent proof of time. That is why signature and time stamp are often combined: you sign the document, obtaining the .p7m, then time-stamp the .p7m. The result can be kept as .p7m plus .tsr, or as a single .tsd or .m7m file. More in time stamps, electronic signatures and registered email.

Time stamp inside a PDF (PAdES)

A PDF can hold a time stamp inside itself, in the PAdES format: an ordinary PDF reader shows it in the signatures panel. This kind of time stamp needs a program that modifies the PDF. Anycert's time stamp is instead a separate file (.tsr), valid for any type of file, not just PDFs; with the free tool it can be joined to the document in a .tsd or .m7m. The options for PDFs are compared in time-stamping a PDF.

Example: a contract signed and time-stamped

StepResulting file
The contract is writtencontract.pdf
It is signed electronicallycontract.pdf.p7m
The signed file is time-stampedcontract.pdf.p7m + contract.pdf.p7m.tsr
The single file is created (optional)contract.pdf.p7m.tsd or contract.pdf.p7m.m7m

The final name is long, but it tells the file's story: each extension is one step.

.tsd or .m7m: which to choose

  • .tsd for a recipient outside Italy or an archive that follows international standards.
  • .m7m if the file goes to a recipient in Italy who uses Italian signature software: it is the format they expect.
  • Separate .tsr plus original file if you want to keep the two apart, for example to open the document in its usual program without extracting it.

Both single files are created free of charge in your browser with the tool Check a time stamp, by choosing the original file and its time stamp. Nothing is uploaded.

Which programs open each format

FormatAnycert's free toolSignature-verification programsOpenSSL
.tsr / .tstYesUsually yesYes (openssl ts -reply)
.tsdYes, also to extract the documentUsually yesNot directly
.m7mYes, also to extract the documentOften, especially Italian programsNo
.p7mNo: it is a signatureYesYes (openssl cms)

How to read the data shown and how to tell whether the file matches is explained in the guide on how to verify a time stamp. To get a .tsr for your own file, see the qualified time stamp page.

Frequently asked questions

Should I choose .tsd or .m7m?

.tsd is the international standard (RFC 5544) and suits recipients and archives in any country; .m7m is a format used mainly in Italy, for recipients there who use Italian signature software.

Is a .p7m a time stamp?

No. A .p7m is an electronically signed document: it shows who signed, not when the file existed. You can time-stamp a .p7m like any other file.

What is the difference between .tsr and .tst?

The .tsr is the provider's complete response, the .tst only the time-stamp token inside it. For checking, they are equivalent.

Sources

Pages checked on .

More guides