Trusted HTTPS for localhost

A self-signed certificate gives you a red warning page in every browser. The fix is a certificate authority that your computer trusts and that signs a certificate for each local site. Lumina sets that up for you.

Turn it on

  1. Install Lumina and a web server, then open Sites.
  2. Switch on HTTPS and trust the certificate authority when asked (one prompt).
  3. Open https://localhost or https://yoursite.test: the padlock is there, in Chrome, Edge, Firefox and Safari.

Is it safe?

The certificate authority is created on your computer and never leaves it. It is limited to your local names (.test and localhost), so it cannot vouch for real websites. You can regenerate it or remove it from the Sites page at any time.

Node.js and Python dev servers too

Vite, Next.js or Django projects in www are served at https://name.test behind the same certificates, and Lumina's dev servers trust them, so calls between your .test sites work.

Questions

Do I need mkcert?

No. Lumina creates, trusts and renews the certificates itself.

Does it work offline?

Yes. Nothing is requested from the internet.

Related guides