免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: platinum
打印 上一主题 下一主题

[Web] apachectl startssl(怎样才能跳过启动时输入密码)已解决 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-08-26 12:03 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

platinum  brother

说的对

论坛徽章:
0
12 [报告]
发表于 2005-08-26 12:32 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

[quote]原帖由 "ccn"]你能破解DES算法就能还原了[/quote 发表:

能否再详细解释一下?
我对密钥认证这里不了解,我不知道不用证书的方式来访问还会不会安全

论坛徽章:
0
13 [报告]
发表于 2005-08-26 12:33 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

原帖由 "haoyufu" 发表:
platinum  brother

说的对

前面兄台的意思是我说的不对,我也不知道该如何理解

论坛徽章:
0
14 [报告]
发表于 2005-08-28 09:21 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

老乔进来看看

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
15 [报告]
发表于 2005-08-28 12:04 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

原帖由 "platinum" 发表:
谢谢你,这个做法我知道

但我想知道,像这种方式(没有证书的)的 https,除了在网络中不是以明文传输以外,并不能保证数据的安全吧?
我是这样理解的,别人截取以后一样可以还原,不知道说的对吗?


你可以看看RSA的原理,还有关于公钥私钥的,多理解,我想答案应该在那里

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
16 [报告]
发表于 2005-08-28 14:59 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

原帖由 "platinum"]老乔进来看看 [/quote 发表:


http://w.yi.org/ftp/FAPM/apache/Apache2/zh/ssl/ssl_faq.html
[quote]

How can I get rid of the pass-phrase dialog at Apache startup time?
The reason why this dialog pops up at startup and every re-start is that the RSA private key inside your server.key file is stored in encrypted format for security reasons. The pass-phrase is needed to be able to read and parse this file. When you can be sure that your server is secure enough you perform two steps:

Remove the encryption from the RSA private key (while preserving the original file):

$ cp server.key server.key.org
$ openssl rsa -in server.key.org -out server.key


Make sure the server.key file is now only readable by root:

$ chmod 400 server.key


Now server.key will contain an unencrypted copy of the key. If you point your server at this file it will not prompt you for a pass-phrase. HOWEVER, if anyone gets this key they will be able to impersonate you on the net. PLEASE make sure that the permissions on that file are really such that only root or the web server user can read it (preferably get your web server to start as root but run as another server, and have the key readable only by root).

As an alternative approach you can use the ``SSLPassPhraseDialog exec:/path/to/program'' facility. But keep in mind that this is neither more nor less secure, of course.

论坛徽章:
0
17 [报告]
发表于 2005-09-15 09:28 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

看看 应用密码学

论坛徽章:
0
18 [报告]
发表于 2005-09-15 15:25 |只看该作者

apachectl startssl(怎样才能跳过启动时输入密码)已解决

现在用apachectl startssl启动了apache 443端口也在listen了

可是我用https://ip显示找不到服务器

用http://ip可以也能出现小锁状的安全警报,不知道为什么不能用https来访问呢?

论坛徽章:
0
19 [报告]
发表于 2008-08-26 16:05 |只看该作者
openssl rsa -in server.key.org -out server.key

这一步会提示输入原来的 pass phrase

如:
[root@localhost conf]# openssl rsa -in server.key.org -out server.key
Enter pass phrase for server.key.org: 输入pass phrase
writing RSA key
这样就会生成新的server.key

论坛徽章:
4
IT运维版块每日发帖之星
日期:2015-09-01 06:20:00IT运维版块每日发帖之星
日期:2015-10-09 06:20:00操作系统版块每日发帖之星
日期:2015-10-20 06:20:00IT运维版块每日发帖之星
日期:2015-11-03 06:20:00
20 [报告]
发表于 2008-08-26 17:59 |只看该作者
我记得有一个参数,noxxxxx,具体忘了,你可以查看openssl
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP