How to check a signature without AmbarMark
You can check a document signed with AmbarMark even if AmbarMark no longer exists or no longer has the document. You need the evidence package (a ZIP file) and a computer with a terminal. The tools used are free and come with Linux and macOS.
What a fingerprint is
A SHA-256 fingerprint is a code of 64 letters and digits calculated from the file. If a single byte of the file changes, the fingerprint is different. If the fingerprint you calculate matches the one in the package, the file is the same.
Steps
- Download the evidence package of the document. Whoever sent the document for signature downloads it.
- Unzip the package into a folder. Inside there is a LEEME-README.txt file that explains each file.
- Open a terminal in that folder. On macOS, the Terminal app. On Linux, the terminal of your desktop.
- Check the fingerprint of the signed PDF. On Linux type: sha256sum -c documento-firmado.pdf.sha256. On macOS type: shasum -a 256 -c documento-firmado.pdf.sha256. If it answers OK, the PDF has not changed.
- Check the rest of the package. On Linux: sha256sum -c SHA256SUMS.txt. On macOS: shasum -a 256 -c SHA256SUMS.txt. Every file must answer OK.
- If the package has the file timestamp.tsr, see the date of the timestamp with: openssl ts -reply -in timestamp.tsr -text. The Time stamp line gives the date.
- To check that the timestamp matches the PDF, download the root certificate published by the timestamping authority and type: openssl ts -verify -in timestamp.tsr -data documento-firmado.pdf -CAfile root-certificate.pem. It must answer Verification: OK. If the package has tsa-root.pem, it is that same certificate; you can compare it with the one the authority publishes.
- Read resumen-evidencias.txt. It says what is on record (confirmed email address, date of each signature, fingerprint) and what it does not prove.
On Windows you can calculate the fingerprint with: certutil -hashfile documento-firmado.pdf SHA256, and compare it by hand with the one in documento-firmado.pdf.sha256.
What this check shows
It shows that the PDF has not changed since it was signed and, if there is a timestamp, that it already existed on the date of the timestamp. It does not show anyone's identity: the signature is confirmed with a code sent by email, and that only shows access to that email address.
While AmbarMark keeps the document, you can also use the AmbarMark check page. Go to the check page