Verification
Signing key.
We sign every email we send, and any page receipt you ask for. We sign reports separately and offline, with a company key. Here are the keys to check them against, and how to do it.
The public key
- Algorithm
- RSASSA-PKCS1-v1_5, SHA-256, RSA-2048
- Key fingerprint
- b6ce9a82d74a6048
-----BEGIN PUBLIC KEY----- MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAyJhDUwuBgRs32Tp+0YJE es8dlFka/i/9DS6BXf/9K3ghATu1iooWeJNvVpqvRY1RpWdrSmKtz7ryvDxUdyfn yB1oFpqHxl2rkqoRrdtLov3s/z5FAyuJoRJE89IHtU5EbwZd2TV6bH/0piTdFH4B m80/ogjXrMTm5JpqNM+gpqAD2B63Fly/Vs8mT5zMa3t7L99Vf979Ui9gK/l5QOcI JFhsRym5FpSWqTKobGr2QZpxhlkG55R7ZJnr/SRzcu/Z5bxwK3qNPOL9MHx2vGq0 dTUZ8YYUoKBhGHrdWm0uwOCEqgU4UolnWhrS39vvHmrHj+62Pk4k3kHL60IaE/Td jQsessOIHpOvwvivK0MFC+X4ZJ+6lCz8dqphsbx55KmdS9dLLweIG+QOQJVZqY3Q D0EmtLgi3fCU5W5a1PYwUYyJ+TAzozGVICDpr1XtRiBWOU+MopAkzYqRe+oZlPBZ l0KRNq+GKqoie9P8JdzjPkhVFmxchIFg8l2hClT7cmTK4YhX5ZemhOvtCC2KuMxm 8HuvsAS5k69PaEcAk6Y7oUEGROmnbKQtdiHxXEACRh86qTtv1ynuDLyZFlbKWFfY l7UAaPsEVATP2gYK0wiF2jc1IMCBUeo+GMi+hdGdWxvVPcHJIM5+wYubiQ1SCbaJ T3DHaEQRsRJQ9Y86VP/74gcCAwEAAQ== -----END PUBLIC KEY-----
The fingerprint is the first 16 hex characters of the SHA-256 hash of this key in DER form. Every signature names the key that made it. If we ever change keys, older signatures still check out. You just need the key that matches.
The report key
Reports are signed offline with a separate company key, not by this web server. It is a different key from the one above.
- Algorithm
- RSASSA-PKCS1-v1_5, SHA-256, RSA-2048
- Key ID
- 9bc5ab264deb0d59
-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjlcH5WF29TWl3TbnG4vy f2DEoB5vLkbSU0KzqyUsbhnftX1kDl7P+I8H7eA1VkMTJdvTRVdMhdSR6IKgmeje 5II1ptASGvmaIVgHUXMJ3HAihYckDzTmbm/OWhywY2KEQzPE0mTJnseGPawCoWYm h3HwrlWHh6LHT/aqHKF5jsrkgcInE1eF4tzUTQ6l3rZoIkGXMcm4U1uLKXFh3ty9 x4NCjSar8ZKZ6NJOfXQCTibssReq+85IJvc6EzGZDbyuCt9pmxwPzWVL+mCh72hx b9VQJFObAX9nJOSksA6AqVN86vIjSAeK5omesCQR59OXrY6vV1xm9c2mR09j++6M FwIDAQAB -----END PUBLIC KEY-----
The key ID follows the same rule as the fingerprint above: the first 16 hex characters of the SHA-256 hash of this key in DER form.
Each report’s data folder has a file called signature/VERIFY.txt with the commands to check it by hand. Nothing signs that file, so rely on the commands printed on the report’s Data Integrity page. The folder also holds a copy of this key, but that copy only shows the folder agrees with itself. Compare the key ID printed on the notarized report with this page, not only with the copy in the folder.
What is signed for a report
Each report has two signed payloads, one key=value per line, joined with newlines and no newline at the end.
type=ast-evidence reportNo=<report number> revision=<revision> company=<company name> manifestSha256=<fingerprint of the file list> resultsSha256=<hash of the results file> fileCount=<number of files covered> signedAt=<time signed> keyId=<key ID>
type=ast-report reportNo=<report number> revision=<revision> pdfSha256=<hash of the report PDF> manifestSha256=<fingerprint of the file list> signedAt=<time signed> keyId=<key ID>
What we sign
Three things, and what each one proves.
Emails
We sign every email we send, even the alerts we only send to ourselves. The signature covers who it went to, the subject, the kind of message, the time it was signed, and a SHA-256 hash of the plain-text body as it was before the signature block was added.
The HTML version is not signed. Mail programs often change HTML on the way to you, so a signature over it would fail even when nothing is wrong.
Page receipts
You can ask for one with the link at the bottom of any page. It covers the time, your IP address, your browser’s user agent, whether the request came from a signed-in admin, the page address, and a SHA-256 hash of the HTML our server returns for it.
One thing to know: the hash is of the page as we serve it at the moment you ask for the receipt. Most pages are the same every time you load them. A page that changes, like the reviews list, can hash differently from what you saw a minute earlier.
Reports
Signed offline with the report key, not by this server. One signature covers the report’s data folder through its file list, along with the results file and the number of files. A second covers the report PDF and ties it to that same file list.
Both also name the report number, the revision, the time of signing and the key ID.
What a signature does and does not prove
It proves our server produced that exact content, and that nobody has changed it since. So if someone forwards you an email that claims to be from us, it either checks out against this key or it does not.
It does not prove when, at least not to someone who does not trust us. The time inside the signature comes from our own server’s clock, and our server holds the key, so it could in principle sign something with any date on it. Treat the time as an honest record, not as proof against us. Anything that needs more than that calls for an outside timestamp service, and we do not use one right now.
A report signature proves one thing: the folder has not changed since signing. It does not prove the measurements are right, and it is not the notary’s act.
How to check one
Three ways, all offline.
Save the server key above as server_public.pem. Every signature block tells you exactly what was signed: one key=value per line, joined with newlines, with no newline at the end. Put that text back together and check it.
What is signed for an email
type=email to=<lowercased recipient> subject=<subject line> kind=<the message kind> contentSha256=<from the block> signedAt=<from the block> keyId=<from the block>
A page receipt works the same way, with type=page-visit and its own fields. It also gives you the exact signed text in signedPayload, so there is nothing to put back together.
openssl
printf '%s' "$PAYLOAD" > payload.txt echo "$SIG_BASE64" | base64 -d > sig.bin openssl dgst -sha256 -verify server_public.pem -signature sig.bin payload.txt
Node
crypto.verify("sha256", Buffer.from(payload, "utf8"),
fs.readFileSync("server_public.pem"),
Buffer.from(sigBase64, "base64"));Java
Signature s = Signature.getInstance("SHA256withRSA");
s.initVerify(publicKey);
s.update(payload.getBytes(StandardCharsets.UTF_8));
boolean ok = s.verify(Base64.getDecoder().decode(sigBase64));Use Signature, not Cipher. Verifying with Cipher.getInstance("RSA/ECB/PKCS1Padding") means doing raw RSA and checking the padding by hand, and that is a well-known way to end up accepting forged signatures.
Our repository also has a script, node scripts/verify-signature.mjs, that takes an email or a receipt and does all of this for you.
Questions about a signature you have? Email us at customersupport@appliedspeedtechnologies.com. This key is served from https://appliedspeedtechnologies.com/business/key over TLS, so nobody between you and us can hand you a different key without also breaking the site’s security certificate.
