Skip to content

Commit 8a77103

Browse files
committed
fix self signed certificate compatibility
Closes #17 Default keySize is 1024 and algorithm which is not enough nowadays. Default algorithm is sha1 which is deprecated. https://security.googleblog.com/2014/09/gradually-sunsetting-sha-1.html See https://github.com/jfromaniello/selfsigned/blob/c5ac42bdb5949bce47679221284331cab71a1e1e/README.md#options
1 parent a56489f commit 8a77103

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/daemon/pem.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ function generate() {
2020
const pems = selfsigned.generate(
2121
[{ name: "commonName", value: "chalet" }],
2222
{
23-
days: 365
23+
keySize: 2048,
24+
days: 365,
25+
algorithm: "sha256"
2426
}
2527
);
2628
fs.writeFileSync(KEY_FILE, pems.private, "utf-8");

0 commit comments

Comments
 (0)