2019-04-20 22:07:23 +01:00
|
|
|
# mkcert
|
|
|
|
|
|
|
|
> Tool for making locally-trusted development certificates.
|
2019-06-03 01:06:36 +01:00
|
|
|
> 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:
|
|
|
|
|
2020-10-04 18:33:38 +01:00
|
|
|
`mkcert "{{*.example.it}}"`
|
2019-04-20 22:07:23 +01:00
|
|
|
|
|
|
|
- Uninstall the local CA:
|
|
|
|
|
|
|
|
`mkcert -uninstall`
|