tldr/pages/common/mkcert.md

25 lines
568 B
Markdown
Raw Permalink Normal View History

2019-04-20 22:07:23 +01:00
# mkcert
> Tool for making 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`