Skip to content

Commit a71ba68

Browse files
committed
Set keyUsage
1 parent b13d724 commit a71ba68

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/start-proxy-action.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ function generateCertificateAuthority(): CertificateAuthority {
7979

8080
cert.setSubject(CERT_SUBJECT);
8181
cert.setIssuer(CERT_SUBJECT);
82-
cert.setExtensions([{ name: "basicConstraints", cA: true }]);
82+
cert.setExtensions([
83+
{ name: "basicConstraints", cA: true },
84+
{ name: "keyUsage", keyCertSign: true, cRLSign: true },
85+
]);
8386
cert.sign(keys.privateKey);
8487

8588
const pem = pki.certificateToPem(cert);

0 commit comments

Comments
 (0)