diff options
author | Matthew Miller <matthew@millerti.me> | 2020-07-10 23:58:32 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-07-10 23:58:32 -0700 |
commit | fc7217bd4d66f50f5d0406f4067967ea979c0626 (patch) | |
tree | bf4470a954b5186ea92e8cbe9dd507cd26b5d20a | |
parent | 5efaaa167d6be7fd50d0fb81d03e68fcb6267c8e (diff) |
Improve console ouput around CRL downloading
-rw-r--r-- | packages/server/src/helpers/isCertRevoked.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/helpers/isCertRevoked.ts b/packages/server/src/helpers/isCertRevoked.ts index 69b2ac9..34ef7fe 100644 --- a/packages/server/src/helpers/isCertRevoked.ts +++ b/packages/server/src/helpers/isCertRevoked.ts @@ -68,12 +68,12 @@ export default async function isCertRevoked(cert: X509): Promise<boolean> { // Download and read the CRL const crlCert = new X509(); try { - console.log(`Download CRL`); + console.log(`Downloading CRL:`, crlURL[0]); const respCRL = await fetch(crlURL[0]); const dataCRL = await respCRL.text(); crlCert.readCertPEM(dataCRL); } catch (err) { - console.error(`Error downloading CRL: ${err.message}`); + console.error(`Error downloading CRL: ${err}`); return false; } |