Skip to content

Commit

Permalink
Fix DH param generation (#93)
Browse files Browse the repository at this point in the history
* Pass dhparamPath as arg

* Get DH param path from config
  • Loading branch information
dappnodedev authored Jul 10, 2024
1 parent 783ac80 commit a1bcd6b
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 @@ -7,7 +7,7 @@ const keyLength = 2048;

async function isDHParamValid() {
try {
await shell(`openssl dhparam -check < ${path}`);
await shell(`openssl dhparam -check < ${config.dhparamPath}`);
return true;
} catch {
return false;
Expand Down

0 comments on commit a1bcd6b

Please sign in to comment.