自签证书和申请颁发证书
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-24
做一个自签证证书过程
1 进入/etc/pki/CA/private 生成一个密钥文件
[root@station40 certs]# cd /etc/pki/CA/private/
[root@station40 private]# ls
my.key
[root@station40 private]# openssl genrsa 2048 >cakey.pem
Generating RSA private key, 2048 bit long modulus
.............................
...............................................................
e is 65537 (0x10001)
[root@station40 private]# ls
cakey.pem
2 开始自签
-days 是CA证书的自签发时的有效期限
拥有帝国一切,皆有可能。欢迎访问phome.net
[root@station40 CA]# openssl req -new -x509 -key private/cakey.pem -out cacert.pem -days 2000
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) [<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /> |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于自签证书和申请颁发证书的所有评论