🖤 Black Friday / Cyber Monday: 20% off Stratos Pro with code BFCM20 — Founder Lifetime $89 $71.20 once (ends Dec 7). Claim Deal →
BFCM20 · 20% Off⚡ New in v1.7.2: 1-Click MCP Server for Cursor & Claude Code — Lock in the $89 → $71.20 Founder Lifetime License with code BFCM20 (Save $207+/yr vs Herd Pro)Claim Founder Tier →
Stratosv1.7.2
Guides & Comparisons• 3 min read

Fixing Local Self-Signed SSL Certificate Warnings in Chrome & Safari on Mac

How to eliminate NET::ERR_CERT_AUTHORITY_INVALID in Chrome, Safari, and Brave using a trusted 4096-bit Local Development Root Certificate Authority.


Why Browsers Show SSL Warnings for Local Sites

When developing locally over HTTPS (e.g., https://my-app.test), web browsers like Google Chrome, Apple Safari, and Brave enforce strict certificate security. Ad-hoc self-signed certificates trigger prominent security warnings: NET::ERR_CERT_AUTHORITY_INVALID, "Your connection is not private", or "This certificate was signed by an untrusted issuer."

Bypassing these warnings by typing thisisunsafe or clicking "Advanced → Proceed" causes several development issues:

  • Service workers, Web Workers, and HTTP/2 features may be restricted or disabled.
  • Third-party OAuth redirects and webhook receivers (e.g., Stripe, Shopify) often reject untrusted SSL connections.
  • Sub-resource assets (CSS, JS, fetch calls) can be blocked by mixed-content or cross-origin security rules.

How Stratos Solves Local SSL Automatically

Stratos uses an enterprise-grade Local Root Certificate Authority (Local CA) workflow:

  1. 4096-Bit Root CA Generation: During initial setup, Stratos generates a dedicated 4096-bit RSA Root Certificate Authority uniquely keyed to your Mac.
  2. System Keychain Trust: Stratos adds this certificate to your macOS login Keychain with kSecTrustSettingsResultTrustRoot flags, prompting for your macOS administrator password once.
  3. Wildcard SAN Certificates: When serving sites under your development TLD (e.g., .test), Stratos automatically generates and signs SSL certificates containing exact Subject Alternative Name (SAN) extensions for both apex domains and subdomains (e.g., my-app.test and *.my-app.test).

Quick Diagnostic: macOS Local SSL Doctor Script

Want to check why your .test domains or local TLS certificates are failing right now? Download and inspect our free, read-only macOS diagnostic script (checks /etc/resolver/test, dscacheutil DNS routing, ports 80/443, and Keychain Root CA certificates):

curl -fsSLO https://stratosapp.dev/tools/macos-local-ssl-doctor.sh
less macos-local-ssl-doctor.sh
bash macos-local-ssl-doctor.sh my-app.test

Verifying SSL Trust

Open any linked site in Safari or Google Chrome. You will see a clean green or black lock icon with zero security dialogs, allowing full HTTP/2 and service worker functionality.

Provision Zero-Warning HTTPS Free with Stratos →

🖤 BFCM20 · 20% OFF THROUGH DEC 7, 2026

Replace $296+/yr of macOS Dev Subscriptions with Stratos

Start free forever with native Nginx, PHP 8.1–8.5, .test HTTPS, Xdebug 3, and read-only MCP schema tools—or lock in the Founder Lifetime license (3 Macs) for $71.20 (reg. $89) with code BFCM20.