码迷,mamicode.com
首页 > 其他好文 > 详细

生成证书申请csr文件

时间:2018-09-12 11:15:30      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:msu   aam   leave   执行命令   信息   OWIN   rsa   led   msm   

一、执行命令

openssl req -nodes -newkey rsa:2048 -keyout liexiulive.key -out liexiulive.csr

二、根据提示输入基本信息

Generating a 2048 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 (2 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--  1 ac  staff  1066  5  9 14:51 liexiulive.csr
-rw-r--r--  1 ac  staff  1704  5  9 14:51 liexiulive.key

四、复制csr内容粘贴到name.com的申请框中(注意包括BEGIN和END两行)

-----BEGIN CERTIFICATE REQUEST-----
MIIC2zCCAcMCAQAwgZUxCzAJBgNVBAYTAkNOMRAwDgYDVQQIDAdCRUlKSU5HMRAw
DgYDVQQHDAdCRUlKSU5HMRMwEQYDVQQKDApMSUVYSVVMSVZFMQ0wCwYDVQQLDARM
SVZFMRkwFwYDVQQDDBAqLkxJRVhJVUxJVkUuQ09NMSMwIQYJKoZIhvcNAQkBFhRB
RE1JTkBMSUVYSVVMSVZFLkNPTTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBAMLxe9MUo66aR2nALnIjOne+u5y0ju0nEMVH14GzOhlHkN2UYaJUbGlsbvJo
l6AsQ2npZ9H4N7fp7b00LHzf1ZQyrrFpHThV3TrU2tzdtkeL7qjc5UUc0FO1/gJS
9zgS3kVvC4u8EVY4g8DudUnDbRpNM4uRv5mNiyeuRtgTrhLzfSsGRoOkMvLhdtR9
8l21g4s7N3a0U7qQprDFI5sXmY4XP1C2pvKBXsrRaqwQFBVrPgANIAe5E+OybqGW
zTxsXsaTLQxKjjCNQpWtvbJMHFEhVxGFUsGYCBR5d0VRzL/7M2YLgRN/rw8tYzdo
Zc74CU2g1hzTcx/1Iy7YJbmIAZ0CAwEAAaAAMA0GCSqGSIb3DQEBCwUAA4IBAQAQ
rBAFYmv03ZUP4GEnRLPpkVSper9gKg/j3M4/WF90fl6Q/Tk/Jn9AUSdcVEKtne7c
qE0i97k0uoYBhrf7xZes0fYeFLiaviabxsKybwB/VhaRh168/axWixHUmei5oiuE
d1mesGt1lR9w4DWUPQNNNiLUyazcqEbiLSGl6voZfkcKNbuf6coTtD0Dkw2MiyGp
shD7EqgC06x6uNJ0n7J0X3eJnWJCo8UpNpjD+UEf+D2/zLo41JgIek/sFkdN0QGZ
BWllZ/zoIXAaprJAD6jQWLVddxNcaaZFdqQq8/FnOkqG7xg+TlX+xpCOY4jrQpTT
5Zvt+Tk7OMc/EUZJNvdA
-----END CERTIFICATE REQUEST-----

 

生成证书申请csr文件

标签:msu   aam   leave   执行命令   信息   OWIN   rsa   led   msm   

原文地址:https://www.cnblogs.com/onephp/p/9633134.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!