summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/server/src/attestation/verifications/verifyPacked.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/server/src/attestation/verifications/verifyPacked.ts b/packages/server/src/attestation/verifications/verifyPacked.ts
index a40385a..f404bdd 100644
--- a/packages/server/src/attestation/verifications/verifyPacked.ts
+++ b/packages/server/src/attestation/verifications/verifyPacked.ts
@@ -67,27 +67,27 @@ export default function verifyAttestationPacked(attestationObject: AttestationOb
} = subject;
if (OU !== 'Authenticator Attestation') {
- throw new Error('Batch certificate OU MUST be set strictly to "Authenticator Attestation"! (Packed|Full');
+ throw new Error('Batch certificate OU was not "Authenticator Attestation" (Packed|Full');
}
if (!CN) {
- throw new Error('Batch certificate CN MUST no be empty! (Packed|Full');
+ throw new Error('Batch certificate CN was empty (Packed|Full');
}
if (!O) {
- throw new Error('Batch certificate CN MUST no be empty! (Packed|Full');
+ throw new Error('Batch certificate CN was empty (Packed|Full');
}
if (!C || C.length !== 2) {
- throw new Error('Batch certificate C MUST be set to two character ISO 3166 code! (Packed|Full');
+ throw new Error('Batch certificate C was not two-character ISO 3166 code (Packed|Full');
}
if (basicConstraintsCA) {
- throw new Error('Batch certificate basic constraints CA MUST be false! (Packed|Full');
+ throw new Error('Batch certificate basic constraints CA was not `false` (Packed|Full');
}
if (version !== 3) {
- throw new Error('Batch certificate version MUST be 3(ASN1 2)! (Packed|Full');
+ throw new Error('Batch certificate version was not `3` (ASN.1 value of 2) (Packed|Full');
}
toReturn.verified = verifySignature(sig, signatureBase, leafCert);