Skip to content

Avoid macOS certificate verifier timeout for renderer proxy - #2424

Open
oujesky wants to merge 1 commit into
freelensapp:mainfrom
oujesky:fix/macos-renderer-certificate-timeout
Open

oujesky wants to merge 1 commit into
freelensapp:mainfrom
oujesky:fix/macos-renderer-certificate-timeout

Conversation

@oujesky

@oujesky oujesky commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • add the generated renderer proxy certificate's SHA-256 SPKI fingerprint to Chromium before Electron is ready
  • order hostname setup after renderer proxy certificate generation
  • add focused coverage for the command-line switch and startup dependency

Problem

On macOS 26.5.2 arm64 with Freelens 1.10.3 and Electron 41.10.0, navigation to the loopback HTTPS renderer could remain in Chromium's CERT_VERIFIER_JOB for 30 seconds and then fail with net::ERR_TIMED_OUT. Electron's JavaScript certificate verifier was not reached because the platform certificate verifier stalled first.

Fix

The renderer proxy already generates an ephemeral certificate for each application process. This change calculates the certificate public key's SHA-256 SPKI fingerprint and passes that exact value through Chromium's ignore-certificate-errors-spki-list switch before Electron becomes ready.

The exception is limited to the ephemeral public key used by the local renderer proxy. It does not disable certificate validation globally or trust a hostname independently of that key.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant