summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-08-17 22:49:18 -0700
committerMatthew Miller <matthew@millerti.me>2021-08-17 22:49:18 -0700
commit44647ca651bdeb63a67e98f422c90aba8c11a978 (patch)
tree9a43cd490bdc5b76f6f7067c5c545e8459621742 /packages/server/src
parente67e40f304e07a92fc34ff510c1162f0cf2269ca (diff)
Simplify cert path validation in "apple"
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/attestation/verifications/verifyApple.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/server/src/attestation/verifications/verifyApple.ts b/packages/server/src/attestation/verifications/verifyApple.ts
index 69d94af..d0c3059 100644
--- a/packages/server/src/attestation/verifications/verifyApple.ts
+++ b/packages/server/src/attestation/verifications/verifyApple.ts
@@ -21,10 +21,8 @@ export default async function verifyApple(
/**
* Verify certificate path
*/
- const certPath = x5c.map(convertCertBufferToPEM);
-
try {
- await validateCertificatePath(certPath, rootCertificates);
+ await validateCertificatePath(x5c.map(convertCertBufferToPEM), rootCertificates);
} catch (err) {
throw new Error(`${err.message} (Apple)`);
}