Skip to content

Commit

Permalink
Use await to check DH params (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev authored Jul 10, 2024
1 parent a1bcd6b commit 2ea3eef
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 2ea3eef

Please sign in to comment.