diff options
author | Matthew Miller <matthew@millerti.me> | 2022-02-09 22:21:03 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-02-09 22:53:38 -0800 |
commit | 25974b11ada849df3bed8da8a10db379473ab555 (patch) | |
tree | c5795cb57557d838d00127a487ea5cd2ccad6f73 /packages/server/src | |
parent | a8b97311fdec49734d2476c8654202b567d89ffb (diff) |
Report which intermediate cert has time issues
Diffstat (limited to 'packages/server/src')
-rw-r--r-- | packages/server/src/helpers/validateCertificatePath.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/helpers/validateCertificatePath.ts b/packages/server/src/helpers/validateCertificatePath.ts index 77d7f77..99923fb 100644 --- a/packages/server/src/helpers/validateCertificatePath.ts +++ b/packages/server/src/helpers/validateCertificatePath.ts @@ -90,7 +90,7 @@ async function _validatePath(certificates: string[]): Promise<boolean> { } else if (isRootCert) { throw new Error('Root certificate is not yet valid or expired'); } else { - throw new Error('Intermediate certificate is not yet valid or expired'); + throw new Error(`Intermediate certificate at index ${i} is not yet valid or expired`); } } |