1、下载:
https://github.com/FiloSottile/mkcert/releases/latest
选择mkcert-v1.4.3-windows-amd64.exe
2、根证书
执行./mkcert-v1.4.3-windows-amd64.exe -install后在路径
C:\Users\lz\AppData\Local\mkcert
中生成根证书,拷到客户端。
3、颁发证书
./mkcert-v1.4.3-windows-amd64.exe localhost
将生成证书拷贝到服务端