Understand · Worked example

Worked example: sign and timestamp a PDF in Adobe Acrobat

See what a digital signature and a timestamp do on a real PDF, in a tool you already know. Part A signs the PDF with a Digital ID. Part B adds an RFC 3161 timestamp from the Evidency sandbox.

This is an illustration of the recipe, not the production path. It uses a self-signed Digital ID and a local proxy on one machine. To build a real setup, use choose your setup and the DocuSeal tutorial.

1. Prerequisites

Part A (sign):

  • Adobe Acrobat for Windows.

  • A sample PDF.

Part B (timestamp), in addition:

2. Create a Digital ID in Acrobat

Part A. Chain 2: integrity. See the recipe.

A Digital ID holds the certificate and private key used to sign. Acrobat can create a self-signed one for testing.

  1. Press Ctrl+K to open Preferences. Select Signatures. Under Identities & Trusted Certificates, select More. Select Digital IDs, then select the Add ID icon.

  2. In the Add Digital ID dialog, select A new digital ID I want to create now, then select Next.

    Add Digital ID dialog
  3. Keep New PKCS#12 digital ID file selected, then select Next.

    Storage choice
  4. Fill in the identity fields, then select Next.

    Identity fields
    Identity fields filled in
  5. Choose the file location for the .pfx file. Enter a strong password in Password and Confirm Password. Remember it, because you will need it when signing.

    File location and password
  6. Select Finish. The new ID appears in the Digital IDs list with Digital ID File as its storage mechanism.

    Digital ID created

3. Sign the PDF in Acrobat

Follow these steps in order.

  1. Open Adobe Acrobat. Select All tools on the top menu.

    All tools menu
  2. Select Use a certificate. Search for it in the tools search box.

    Searching for Use a certificate
    Use a certificate panel
  3. Select Digitally sign.

    Digitally sign selected
  4. A dialog shows the signing instructions. Select OK.

    Instructions dialog closed
  5. Draw a rectangle on the page where the signature should appear.

    Signature rectangle drawn
  6. In Sign with a Digital ID, select Demo Company, then select Continue.

  7. In the Sign as dialog, check the signature details.

    Sign as dialog
  8. Retype the password you set when you created the Digital ID.

    Password entered
  9. Optional: select Lock document after signing to prevent changes after signing.

  10. Select Sign.

    After Sign
  11. In the save dialog, type a file name such as sample-document-signed.pdf, then select Save.

    Save dialog
    Signed and saved

A blue bar at the top reads Signed and all signatures are valid. The signature is visible in the rectangle you drew.

4. Add a timestamp

Part B starts here. You can stop after step 3 if you only wanted to see a signature. Part B needs Docker and an Evidency API key. It uses the Evidency sandbox.

Part B. Chain 2: date. See the recipe.

Acrobat cannot send custom HTTP headers to a timestamp server, so it needs the nginx proxy that adds the X-API-KEY header. Start it as described in the timestamp proxy tutorial and confirm it answers at http://localhost:8089/. Then point Acrobat at it:

  1. Press Ctrl+K to open Preferences. Select Signatures. Under Document Timestamping, select More.

    Signatures preferences
  2. Under Time Stamp Servers, select New. Enter the name Evidency-sandbox-proxy and the server URL http://localhost:8089/. Leave the login options unchecked, then select OK.

    Server details filled in
  3. Select the new server, then Set Default. Select OK on the Acrobat Security confirmation, then OK to close Preferences.

    Default timestamp server

Now repeat the signing flow from step 3 on an unsigned copy of the PDF, and save it as sample-document-signed-timestamped.pdf. The timestamp is requested when you save. Acrobat asks whether the document may connect to http://localhost:8089/: tick Remember this action for this site for all PDF documents, then select Allow.

Connection allowed

5. Check the result

The blue bar still reads Signed and all signatures are valid. Open the Signatures panel, select the signature and open Signature Properties: it should list a timestamp. This is the integrity and date chain of the recipe, shown on one signature. For the same checks on a real setup, see the verification step of the DocuSeal tutorial.

Are you looking to strengthen the evidential value of your electronic signatures?

Tell us more