You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced `node-forge` with `@peculiar/x509` (more modern, lightweight, and
widely adopted). Node.js's built-in `crypto` module was attempted first, but
`keyUsage` returns `undefined`.
**Testing in Electron**
All vitest tests now run in Electron to mirror VS Code's environment. This adds
a few seconds overhead vs Node.js. `electron` was added as dev dependency
for BoringSSL compatibility (Node.js uses OpenSSL).
UNTRUSTED_CHAIN="Your Coder deployment's certificate chain does not appear to be trusted by this system. The root of the certificate chain must be added to this system's trust store. ",
24
28
}
25
29
26
-
interfaceKeyUsage{
27
-
keyCertSign: boolean;
28
-
}
29
-
30
30
exportclassCertificateErrorextendsError{
31
31
publicstaticActionAllowInsecure="Allow Insecure";
32
32
publicstaticActionOK="OK";
@@ -80,7 +80,7 @@ export class CertificateError extends Error {
80
80
consturl=newURL(address);
81
81
constsocket=tls.connect(
82
82
{
83
-
port: parseInt(url.port,10)||443,
83
+
port: Number.parseInt(url.port,10)||443,
84
84
host: url.hostname,
85
85
rejectUnauthorized: false,
86
86
},
@@ -91,29 +91,27 @@ export class CertificateError extends Error {
91
91
thrownewError("no peer certificate");
92
92
}
93
93
94
-
// We use node-forge for two reasons:
95
-
// 1. Node/Electron only provide extended key usage.
96
-
// 2. Electron's checkIssued() will fail because it suffers from same
97
-
// the key usage bug that we are trying to work around here in the
0 commit comments