SDA-3140 Certificates validation bugfix (#1400)

This commit is contained in:
Salah Benmoussati 2022-05-05 12:16:41 +02:00 committed by GitHub
parent 871430ccb5
commit 9823d77761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -668,11 +668,9 @@ export class WindowHandler {
});
// Certificate verification proxy
if (!isDevEnv) {
this.mainWebContents.session.setCertificateVerifyProc(
handleCertificateProxyVerification,
);
}
app.on('browser-window-focus', () => {
this.registerGlobalShortcuts();

View File

@ -689,8 +689,8 @@ export const handleCertificateProxyVerification = (
) {
return callback(0);
}
return callback(-2);
// We let chromium handle the verification result. In case chromium detects a certificate error, then 'certificate-error' event will be triggered.
return callback(-3);
};
/**