免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1772 | 回复: 4
打印 上一主题 下一主题

[Web] fedora13 apache ssl证书问题请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-10-15 21:22 |只看该作者 |倒序浏览
您好 能请教您一个问题麽 我在生成ssl证书的时候执行第三条语句的时候误把Common Name写为mail.demosoftware.cn 本来应该写成repos.demosoftware.com,后来我重新在生成一次访问网址的时候
查看证书都是mail.demosoftware.cn 。请问您知道怎么改麽?

第一条:openssl genrsa -des3 -out repos.demosoftware.com.key.enc 1024
第二条:openssl rsa -in repos.demosoftware.com.key.enc -out repos.demosoftware.com.key
第三条:openssl req -new -key repos.demosoftware.com.key -out repos.demosoftware.com.csr
第四条:openssl x509 -req -days 365 -in repos.demosoftware.com.csr -signkey repos.demosoftware.com.key -out repos.demosoftware.com.crt

第三条详细步骤:
[root@mail httpd]# openssl req -new -key repos.demosoftware.com.key -out repos.demosoftware.com.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) [XX]:CN
State or Province Name (full name) []:BJ
Locality Name (eg, city) [Default City]:BJ
Organization Name (eg, company) [Default Company Ltd]:demosoftware
Organizational Unit Name (eg, section) []:demosoftware
Common Name (eg, your name or your server's hostname) []:mail.demosoftware.cn
Email Address []:ganlin_liu@demosoftware.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:demo
An optional company name []:demosoftware

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2010-10-15 21:25 |只看该作者
楼主重新生成一次还不行?

论坛徽章:
0
3 [报告]
发表于 2010-10-15 21:38 |只看该作者
我全部重新生成了一个证书还是 显示mail.demosoftware.cn 因为我服务器fedora13的hostname 是mail.demosoftware.cn 不知道有影响没,还是apache哪里缓存要清空下麽

论坛徽章:
0
4 [报告]
发表于 2010-10-15 23:08 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2010-10-18 23:17 |只看该作者
重新生成下就可以了 原来要有一定的时间。自己顶下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP