diff options
author | Matthew Miller <matthew@millerti.me> | 2021-08-17 22:36:39 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-08-17 22:37:25 -0700 |
commit | 82d1115960adee29cae3bffdafbed0aec1e26e88 (patch) | |
tree | b1d0227b04bd6edf764b41d312f7017ad24bdeaf | |
parent | c1d3a69c9bb155aefd7c3764daec5fe85e08285d (diff) |
Skip cert path validation if no root cert
-rw-r--r-- | packages/server/src/helpers/validateCertificatePath.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/server/src/helpers/validateCertificatePath.ts b/packages/server/src/helpers/validateCertificatePath.ts index 3f91c11..ae8a2fd 100644 --- a/packages/server/src/helpers/validateCertificatePath.ts +++ b/packages/server/src/helpers/validateCertificatePath.ts @@ -17,7 +17,8 @@ export default async function validateCertificatePath( rootCertificates: string[] = [], ): Promise<boolean> { if (rootCertificates.length === 0) { - await _validatePath(certificates); + // We have no root certs with which to create a full path, so skip path validation + // TODO: Is this going to be acceptable default behavior?? return true; } |