mkcert 是一个生成本地 HTTPS 加密证书的工具,一个命令就可以生成证书,不需要任何配置。
使用示例
$ mkcert -install Created a new local CA at "/Users/filippo/Library/Application Support/mkcert"The local CA is now installed in the system trust store! The local CA is now installed in the Firefox trust store (requires restart)! $ mkcert [example.com](http://example.com) '_.example.org' myapp.dev localhost 127.0.0.1 ::1Using the local CA at "/Users/filippo/Library/Application Support/mkcert"Created a new certificate valid for the following names - "[example.com](http://example.com)" - "_.example.org" - "myapp.dev" - "localhost" - "127.0.0.1" - "::1"The certificate is at "./example.com+5.pem" and the key at "./example.com+5-key.pem"
1.3.0 版本更新内容如下:
新的高级选项
-ecdsa
to generate ECDSA private keys-client
to generate client certificates-csr
to sign certificate signing requests$TRUST_STORES
to select what stores to install into
其他更新
Add "Firefox Nightly.app" support on macOS
Set the CommonName when generating PKCS#12 files for IIS