安装openssl, 执行如下命令
openssl genrsa -out server.key 2048 &&
subj="/C=CN/ST=hanan/L=zhengzhou/O=Me/OU=Me/CN=localhost" &&
openssl req -new -x509 -key server.key -out server.crt -days 365 -subj $subj
安装openssl, 执行如下命令
openssl genrsa -out server.key 2048 &&
subj="/C=CN/ST=hanan/L=zhengzhou/O=Me/OU=Me/CN=localhost" &&
openssl req -new -x509 -key server.key -out server.crt -days 365 -subj $subj