[root@dhcp ~]# openssl req -new -x509 -days 10 -set_serial 200801
-key my.key -passin file:a -out my.crt
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
[root@dhcp ~]#
[root@dhcp ~]# ll *.csr
ls: *.csr: No such file or
directory
[root@dhcp ~]#
[root@dhcp ~]# ll
*.crt
-rw-r--r-- 1 root root 1229 Feb 20 17:17 my.crt
[root@dhcp
~]#
阅读(392) | 评论(0) | 转发(0) |