1生成自签名私有证书
openssl req -new -x509 -newkey rsa:2048 -keyout /path/to/server.key -out /path/to/server.crt
2 生成自签名证书
https://www.jianshu.com/p/81dbcde4fd7c