生成证书申请csr文件
Posted onephp
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了生成证书申请csr文件相关的知识,希望对你有一定的参考价值。
一、执行命令
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 []:[email protected] 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文件的主要内容,如果未能解决你的问题,请参考以下文章