mkcert实现本地https

参考网址: https://www.oschina.net/p/mkcert [先做记录,后续发布实验步骤] mkcert 是生成本地 HTTPS 加密证书的工具,一个命令就可以生成证书,不需要任何配置。
基于liunx实现的。

$ 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 '*.example.org' myapp.dev localhost 127.0.0.1 ::1
Using the local CA at "/Users/filippo/Library/Application Support/mkcert"

Created a new certificate valid for the following names  
 - "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"  

开源地址: 项目在github地址

axiaoyue

继续阅读此作者的更多文章