一、执行命令
openssl req -nodes -newkey rsa:2048 -keyout liexiulive.key -out liexiulive.csr
二、根据提示输入基本信息
Generating a bit RSA private key
.........................................................................+++
.....+++
writing new private key to 'liexiulive.key'
-----
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 ( letter code) [AU]:CN
State or Province Name (full name) [Some-State]:BEIJING
Locality Name (eg, city) []:BEIJING
Organization Name (eg, company) [Internet Widgits Pty Ltd]:LIEXIULIVE
Organizational Unit Name (eg, section) []:LIVE
Common Name (e.g. server FQDN or YOUR name) []:*.LIEXIULIVE.COM
Email Address []:ADMIN@LIEXIULIVE.COM Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:直接回车不要填写
An optional company name []:直接回车不要填写
三、生成的证书申请文件和私钥文件(.key文件千万别丢非常重要!!!美文)
-rw-r--r-- ac staff : liexiulive.csr
-rw-r--r-- ac staff : liexiulive.key
四、复制csr内容粘贴到name.com的申请框中(注意包括BEGIN和END两行)
-----BEGIN CERTIFICATE REQUEST-----
MIIC2zCCAcMCAQAwgZUxCzAJBgNVBAYTAkNOMRAwDgYDVQQIDAdCRUlKSU5HMRAw
DgYDVQQHDAdCRUlKSU5HMRMwEQYDVQQKDApMSUVYSVVMSVZFMQ0wCwYDVQQLDARM
SVZFMRkwFwYDVQQDDBAqLkxJRVhJVUxJVkUuQ09NMSMwIQYJKoZIhvcNAQkBFhRB
RE1JTkBMSUVYSVVMSVZFLkNPTTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBAMLxe9MUo66aR2nALnIjOne+u5y0ju0nEMVH14GzOhlHkN2UYaJUbGlsbvJo
l6AsQ2npZ9H4N7fp7b00LHzf1ZQyrrFpHThV3TrU2tzdtkeL7qjc5UUc0FO1/gJS
9zgS3kVvC4u8EVY4g8DudUnDbRpNM4uRv5mNiyeuRtgTrhLzfSsGRo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