Skip to content

Commit dcb12c1

Browse files
committed
Explicitly sign certificate with SHA256
1 parent a71ba68 commit dcb12c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/start-proxy-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function generateCertificateAuthority(): CertificateAuthority {
8383
{ name: "basicConstraints", cA: true },
8484
{ name: "keyUsage", keyCertSign: true, cRLSign: true },
8585
]);
86-
cert.sign(keys.privateKey);
86+
cert.sign(keys.privateKey, md.sha256.create());
8787

8888
const pem = pki.certificateToPem(cert);
8989
const key = pki.privateKeyToPem(keys.privateKey);

0 commit comments

Comments
 (0)