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:
- 4096-Bit Root CA Generation: During initial setup, Stratos generates a dedicated 4096-bit RSA Root Certificate Authority uniquely keyed to your Mac.
- System Keychain Trust: Stratos adds this certificate to your macOS login Keychain with
kSecTrustSettingsResultTrustRootflags, prompting for your macOS administrator password once. - 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.testand*.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.
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.