Skip to content

Commit

Permalink
Use await to check DH params
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Jul 10, 2024
1 parent a1bcd6b commit d058a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/certificates/openssl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d058a5a

Please sign in to comment.