配置前提nginx装了SSL功能模块。
[root@www conf]# openssl genrsa -out cert.key2 2048 生成cert.key2私钥文件
Generating RSA private key, 2048 bit long modulus
......................+++
..................................................................................+++
e is 65537 (0x10001)
[root@www conf]# openssl req -new -x509 -key cert.key2 -out cert.pem2 用cert.key2 生成 cert.pem2认证文件
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be l