tldr/pages/common/mkcert.md

25 lines
557 B
Markdown
Raw Normal View History

2019-04-20 22:07:23 +01:00
# mkcert
> Make locally-trusted development certificates.
> More information: <https://github.com/FiloSottile/mkcert>.
2019-04-20 22:07:23 +01:00
- Install the local CA in the system trust store:
`mkcert -install`
- Generate certificate and private key for a given domain:
`mkcert {{example.org}}`
2019-04-21 22:21:45 +01:00
- Generate certificate and private key for multiple domains:
2019-04-20 22:07:23 +01:00
`mkcert {{example.org}} {{myapp.dev}} {{127.0.0.1}}`
- Generate wildcard certificate and private key for a given domain and its subdomains:
`mkcert "{{*.example.it}}"`
2019-04-20 22:07:23 +01:00
- Uninstall the local CA:
`mkcert -uninstall`