[root@dhcp ~]# openssl req -new -key my.key -passin file:a -out
my.csr
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) [GB]:CN
State or Province Name (full name) [Berkshire]:GD
Locality
Name (eg, city) [Newbury]:GZ
Organization Name (eg, company) [My Company
Ltd]:NAP
Organizational Unit Name (eg, section) []:Maintenaince
Common
Name (eg, your name or your server's hostname) []:mail.bob.com
Email Address
[]:ailms@qq.com
Please enter the following 'extra' attributes
to be sent with your
certificate request
A challenge password []:
An optional company name
[]:
[root@dhcp ~]# cat my.csr
-----BEGIN CERTIFICATE
REQUEST-----
MIIBwTCCASoCAQAwgYAxCzAJBgNVBAYTAkNOMQswCQYDVQQIEwJHRDELMAkGA1UE
BxMCR1oxDDAKBgNVBAoTA05BUDEVMBMGA1UECxMMTWFpbnRlbmFpbmNlMRUwEwYD
VQQDEwxtYWlsLmJvYi5jb20xGzAZBgkqhkiG9w0BCQEWDGFpbG1zQHFxLmNvbTCB
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0het4CiVeCwjs4u9HgAWDY696upj
kfA6lhIomfCekB2+ObT6HaLFfgZXQUojeTdpF159rw87Y8AD2Rr3lknJWYaNkiHi
AQ2LYJ9F/PddQUgkY1sQQ0+BPTpCHPFnSG7hL6+QH4WPwuPxLnP7j2Qh+Kwsnins
u4yeb9TlMWT0S+0CAwEAAaAAMA0GCSqGSIb3DQEBBAUAA4GBABpJQ2/+DhzOLwt3
e3o1Wlqi5BRgYCIzCrUB98tfB60bMrqeuYJvHPhARpcJz2LkcaWyikrlW/Sa8wGu
2aBNG+DNj1Dic1ovRrWblAyWSUsOmnWpt7PO21p0PICKpVY01YKYlHsjMmVzT14N
BOBPOxoWIwn7i7rsP5g9s3oRm8OM
-----END
CERTIFICATE REQUEST-----
[root@dhcp ~]#
阅读(529) | 评论(0) | 转发(0) |