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
- Install Lumina and a web server, then open Sites.
- Switch on HTTPS and trust the certificate authority when asked (one prompt).
- Open
https://localhostorhttps://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
-
Run Laravel locally with HTTPS
Set up a Laravel project locally with a real https:// address and a certificate your browser trusts, plus MySQL and Mailpit, on Windows, macOS or Linux.
-
Run Next.js, Vite or Django at a local domain
Serve Next.js, Nuxt, Vite, SvelteKit, Django, FastAPI or Flask dev servers at https://project.test instead of localhost:3000, with hot reload.