Files
tldr/pages.zh/common/mkcert.md

24 lines
478 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mkcert
> 制作本地信任的开发证书。
> 更多信息:<https://github.com/FiloSottile/mkcert>。
- 在系统信任存储中安装本地 CA
`mkcert -install`
- 为给定域名生成证书和私钥:
`mkcert {{example.org}}`
- 为多个域名生成证书和私钥:
`mkcert {{example.org}} {{myapp.dev}} {{127.0.0.1}}`
- 为给定域名及其子域名生成通配符证书和私钥:
`mkcert "{{*.example.it}}"`
- 卸载本地 CA
`mkcert -uninstall`