PEM_read_bio_X509_AUX() failed (SSL: error:0906D06C:PEM routines:PEM_read_bio
1.生成私钥和证书
[root@wknode conf]# openssl genrsa > cert.key
Generating RSA private key, 2048 bit long modulus
.+++
............................................................+++
e is 65537 (0x10001)
[root@wknode conf]# openssl req -new -x509 -key cert.key > cert.pem
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 left blank.
-----
Country Name (2 letter code) [XX]:CN
State or Province Name (full name) []:JiangSu
Locality Name (eg, city) [Default City]:NanJing
Organization Name (eg, company) [Default Company Ltd]:DD
Organizational Unit Name (eg, section) []:GW
Common Name (eg, your name or your server's hostname) []:xx
Email Address []:XXXXXXXXXX@163.com