127.0.0.1换成域名
有效期十年
openssl genrsa -out 127.0.0.1.key 2048
openssl req -new -subj "/C=CN/ST=Chongqing/L=Chongqing/O=test/OU=127.0.0.1/CN=127.0.0.1" -key 127.0.0.1.key -out 127.0.0.1.csr
openssl x509 -req -days 3650 -in 127.0.0.1.csr -signkey 127.0.0.1.key -out 127.0.0.1.crt