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
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";
@@ -84,36 +84,38 @@ export class CertificateError extends Error {
84
84
host: url.hostname,
85
85
rejectUnauthorized: false,
86
86
},
87
-
()=>{
87
+
async()=>{
88
88
constx509=socket.getPeerX509Certificate();
89
89
socket.destroy();
90
90
if(!x509){
91
91
thrownewError("no peer certificate");
92
92
}
93
93
94
-
// We use node-forge for two reasons:
94
+
// We use "@peculiar/x509" for two reasons:
95
95
// 1. Node/Electron only provide extended key usage.
96
96
// 2. Electron's checkIssued() will fail because it suffers from same
97
97
// the key usage bug that we are trying to work around here in the
0 commit comments