Skip to content

platform/electron/certificates

Defined in: app/src/platform/electron/certificates.ts:10

Exceptions for certificates that the user accepted after the warning, for the rest of the session. An exception holds for one host and one certificate, by its fingerprint, so a site that shows another certificate later is refused again. It holds only in the session of the page that accepted it, so an exception made in a private window ends with its session and never reaches regular windows.

new CertificateExceptions(mayOverride): CertificateExceptions

Defined in: app/src/platform/electron/certificates.ts:17

() => boolean

Whether a policy lets people continue after the warning.

CertificateExceptions

allow(contents): boolean

Defined in: app/src/platform/electron/certificates.ts:46

Accepts, for this session, the certificate that a page was just refused.

WebContents

The page.

boolean

Whether there was such a certificate and a policy allows it.

attach(app): void

Defined in: app/src/platform/electron/certificates.ts:26

Accepts the certificates of the exceptions, and remembers which one a page was refused. Certificates of embedded frames are refused without a warning.

App

The application.

void