Qualified time stamps
The qualified time-stamping service confirms that certain data existed at a given moment. Your system sends a hash of the data, and the service returns a time stamp signed with AKD’s qualified certificate (eIDAS). The time stamp is then embedded in a signature (e.g. PAdES B-T or XAdES-T) or kept with the document.
The service uses the RFC 3161 protocol over HTTPS. Requests are authenticated with a user name and password (HTTP Basic).
For signatures at levels T, LT and LTA, the AdES web API adds the time stamp with the access details of your service (see Signature levels and time stamps). This page describes how to request a time stamp directly.
Getting started
Section titled “Getting started”- You order the service in the Certilia Developer portal (Time stamps → New time stamp service). A free trial package is available to start with (100 time stamps in one month, one per person and per organisation); a paid package is paid by card.
- Once the service has been created, its page, on the Integration tab, shows the address you send requests to and the user name.
- Create the password there. It is shown only once, is never sent by e-mail or SMS, and is not kept by the portal.
- On the same tab, Try a time stamp requests one time stamp for a short sample text with your password and shows the response, so that you can verify that the access works. That time stamp counts towards the package like any other.
A new password is valid immediately. The previous password ceases to be valid within a few minutes at the latest, since the service remembers successful sign-ins for some time.
Addresses
Section titled “Addresses”| Service | Test | Production |
|---|---|---|
| TSA | https://tsa.test.certilia.com/qts |
https://tsa.certilia.com/qts |
The Certilia TEST environment has its own portal and its own services; access details from one environment are not valid in the other.
Quick start: OpenSSL and curl
Section titled “Quick start: OpenSSL and curl”Create a request with the document’s SHA-256 hash and request the service’s certificate in the response (-cert):
openssl ts -query -data document.pdf -sha256 -cert -out request.tsqSend the request to the service’s address:
curl --fail -u 'USER_NAME:PASSWORD' \ -H 'Content-Type: application/timestamp-query' \ --data-binary @request.tsq \ -o response.tsr \ 'SERVICE_ADDRESS'You can inspect the response (application/timestamp-reply) as follows:
openssl ts -reply -in response.tsr -textThe examples show the same procedure in Java, .NET, Python, Node.js, PHP and Go, and in Adobe Acrobat Reader.
Response and errors
Section titled “Response and errors”Status: Granted.in the response means the time stamp was issued. The time stamp contains the time, the serial number, the policy (OID) and the hash you sent.- An HTTP
401response means a wrong user name or password, or a service that is not active (e.g. expired or suspended). - If the service refuses the request, the status is
Rejectionand the reason is in thefailInfofield (for examplebadAlgfor an unsupported hash algorithm).
Keep the response with the document (e.g. document.pdf.tsr): it is the proof that the document existed at that moment.
How to keep a time stamp valid for years is described in Archives and re-stamping.
Usage and package
Section titled “Usage and package”Every time stamp issued counts towards the package’s usage for the current billing cycle. The list of time stamps (request and response time, hash, serial number) and the cycle’s usage are on the service’s page, on the Usage tab; the portal sends warnings at 80%, 95% and 100%. You choose the package for the next cycle on the Billing tab; the new price and quota apply from the renewal.