From d058a5a5fadd133b0d08c5b264cfdbd6f30380f9 Mon Sep 17 00:00:00 2001 From: dappnodedev Date: Wed, 10 Jul 2024 13:33:22 +0200 Subject: [PATCH] Use await to check DH params --- src/certificates/openssl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/certificates/openssl.ts b/src/certificates/openssl.ts index eb62e84..089017b 100644 --- a/src/certificates/openssl.ts +++ b/src/certificates/openssl.ts @@ -22,7 +22,7 @@ async function certExpiringDate(pem: string) { } async function generateDHParam() { - if (fs.existsSync(config.dhparamPath) && isDHParamValid()) { + if (fs.existsSync(config.dhparamPath) && await isDHParamValid()) { console.log("Valid, skipping"); return; }