Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DH param generation #93

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/certificates/openssl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from "path";

Check warning on line 1 in src/certificates/openssl.ts

View workflow job for this annotation

GitHub Actions / Unit tests

'path' is defined but never used
import { config } from "../config";
import shell from "../utils/shell";
import fs from "fs";
Expand All @@ -7,7 +7,7 @@

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