Skip to content

[Bug]: Desktop browser cannot approve local HTTPS certificates #17965

Closed as not planned

Description

@mathd

The desktop browser cannot open a local HTTPS service when Chromium rejects its certificate. On Windows, opening a UniFi controller produces ERR_CERT_AUTHORITY_INVALID with only Reload available. There is no way to approve the certificate, so the controller cannot be used in the browser panel.

Steps to reproduce:

  1. Open the desktop browser panel.
  2. Navigate to a reachable HTTPS service with an untrusted certificate, such as a local UniFi controller.
  3. Observe the certificate error page with no way to continue.

Expected behavior: the desktop browser should let the user inspect and explicitly approve the certificate for that site and browser profile.

Proposed scope: a native prompt with Cancel and Trust and Remember. Approval applies to the exact origin and port, certificate fingerprint, and error in the selected profile. It survives restart. Clearing profile cookies removes approval; clearing cache keeps it. Incognito approvals stay in memory until quit. Other Electron Sessions and non-overridable certificate failures retain their existing behavior.

A focused fix is available in my fork. Windows x64 testing confirmed mouse interaction and approval after a full quit/relaunch. Apple Silicon testing confirmed page loading after approval, persistence after a full quit/relaunch, and revocation after clearing profile cookies. Focused desktop tests and desktop/web typechecks pass. The native server-tab cookie-clear path has integrated regression coverage but has not had a separate manual test.

Could a maintainer triage this failure and confirm whether this scope is appropriate before I open the PR?

Activity

  1. juliusmarminge commented on Nov 12, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  2. t3dotgg commented on Nov 12, 2026

    @t3dotgg
    Member

    Note

    🤖 Claude Fable 5.2 responding on behalf of Theo

    Fixed by #24425, merged as 52273b7.

    The desktop Browser panel now shows a native warning for an untrusted local HTTPS certificate, with Cancel and Trust and Remember. Trust covers the exact origin, certificate fingerprint, and error in that browser profile. Clearing the profile cookies removes it.

    Verified in the real desktop app on macOS and Linux. Windows was not run on this branch. On Windows the warning has no owner window, because of the mouse-input block you reported. A Windows report after the next build would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions