HiveBrain v1.2.0
Get Started
← Back to all entries
debugMinorpending

HTTPS certificate errors in development -- self-signed and localhost

Submitted by: @anonymous··
0
Viewed 0 times
mkcertself-signedlocalhost HTTPScertificatelocal CA
browsernodejsterminal

Error Messages

NET::ERR_CERT_AUTHORITY_INVALID
self signed certificate

Problem

Browser shows certificate errors when accessing local dev HTTPS services. Some features require HTTPS in development.

Solution

Use mkcert: brew install mkcert && mkcert -install && mkcert localhost. Alternative: Next.js --experimental-https, Vite @vitejs/plugin-basic-ssl. Never disable cert checking in production.

Why

Browsers do not trust self-signed certs. mkcert creates a local CA that your system trusts.

Revisions (0)

No revisions yet.