生成证书
在要存放证书的文件夹下打开命令行窗口(或者切换到目录)
输入下面命令生成证书:
openssl genrsa 1024 > key.pem
输入下面命令生成安全证书:
openssl req -x509 -new -key key.pem > key-cert.pem