使用一个 openssl 命令,即可完成创建,
`openssl req -newkey rsa:2048 -nodes -keyout /etc/ssl/private/myblog.key -x509 -days 365 -out /etc/ssl/private/myblog.pem`
创建过程中会要求输入一些信息,样例如下:
```
-----
Country Name (2 letter code) [AU]:DE
State or Province Name (full name) [Some-State]:Berlin
Locality Name (eg, city) []:Berln
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Berlin
Organizational Unit Name (eg, section) []:Berlin
Common Name (e.g. server FQDN or YOUR name) []:SUB.YOURDOMAIN.COM
Email Address []:YOURMAIL@MAIL
```