A simple zero-config tool to make locally trusted development certificates with any names you'd like.
open sourceBSD-3-Clauseself-hostablefree
mkcert creates a local certificate authority, installs it in the system root store (and Firefox, Java and others), and generates locally trusted certificates for names like localhost, 127.0.0.1 or example.test. It removes browser trust warnings for local HTTPS without handling a CA by hand. It does not configure servers itself.
Ways to install
Package managers
Problems it solves
- my browser shows a scary certificate warning on my local HTTPS dev server
- need https://localhost for a feature that requires a secure context
- self-signed certificates keep getting rejected by my tools
- generate a trusted cert for a custom local domain like myapp.test
- testing service workers or OAuth locally requires HTTPS
- making my own CA with openssl commands is arcane
- trusted local certificates on Mac, Linux and Windows
- local HTTPS for a mobile device on my network
Features
- local CA install
- system and Firefox trust stores
- any hostnames and IPs
- zero config
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what mkcert does.
