生成私钥

1
$ openssl genrsa -out your.domian.key 2048

生成CSR

1
$ openssl req -new -sha256 -key your.domian.key -out your.domian.csr